Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Fix dragging behavior #1

Merged
merged 2 commits into from
Oct 30, 2020
Merged

Fix dragging behavior #1

merged 2 commits into from
Oct 30, 2020

Conversation

mavain
Copy link
Contributor

@mavain mavain commented Oct 29, 2020

This pull request fixes the issue where dragging would lose which GraphNode was being dragged.

There is a global variable in Graph called selected GraphNode which is whatever node is being dragged at the moment
This allows the global Graph object to correct the GraphNode position accordingly when the OnWheel and OnMouseDown events are fired

@Earu Earu merged commit f259473 into Earu:main Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants