parsegraph / freeform

MIT License
1 stars 0 forks source link

Pulling a node with a gesture in an already occupied direction will pull it to its parent #20

Closed dafrito closed 3 months ago

dafrito commented 4 months ago

pull-bug.parsegraph.json

  1. Start with attached graph at root.
  2. Move to upward node.
  3. Gesture forward from selected node.

Expected behavior: Move to that node

Actual behavior The node is pulled to its parent

dafrito commented 4 months ago

pullNode should only be called if the gesture is in the parent's direction. Otherwise, pullIfOccupied should have no effect, and the gesture should be a move.

dafrito commented 3 months ago

Fixed. Pulling in a child direction toggles alignment. Pulling towards parent has original behavior.