-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe the bug
if you have a clip with a path inside, then try to snap using the line tool, the snap position is wrong.
To reproduce
Steps to reproduce the behavior:
- make a rectangle and convert to clip
- start making a line
- hold option/alt to enable snapping and go near a corner of the rectangle
- the snap goes somewhere to the top left
Expected behavior
either it doesn't snap at all cuz it's technically a clip, or it snaps to the correct location
Screenshots
gif in this forum post
https://forum.wickeditor.com/t/line-tool-bug/24018
Editor version
candlestick 1.0.1
Device
- windows 11 and macOS 15, chromium browsers
Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
i guess since it's inside a clip, the coordinates are based on the clip timeline, not the project timeline. so somehow we need to get the coordinate of the path with respect to the timeline we are currently in.
Additional context
the place where you put your mouse to snap is correct, but when previewing the snap, it acts as if the clip is at (0, 0)