GraphiteEditor / Graphite

2D vector & raster editor that melds traditional layers & tools with a modern node-based, non-destructive, procedural workflow.
https://graphite.rs
Apache License 2.0
7.77k stars 408 forks source link

Fix the Path tool's point dragging getting offset when viewport is panned #1693

Closed nico-mayora closed 6 months ago

nico-mayora commented 6 months ago

Changes path tool implementation for previous_mouse_position to use document units instead of viewport units.

https://discord.com/channels/731730685944922173/881073965047636018/1212129024776740874

Previous behaviour

https://github.com/GraphiteEditor/Graphite/assets/68969663/12834b40-1695-48be-8334-5c6c2e4b2837

Current behaviour

https://github.com/GraphiteEditor/Graphite/assets/68969663/772baa72-edb6-4ad7-891a-104adc48baaa

Keavon commented 6 months ago

!build

github-actions[bot] commented 6 months ago
📦 Build Complete for 86b930f1a206131e1377d53a0b5478adb9a1db45
https://8bc3195d.graphite.pages.dev