Skip to content

[BUG] line tool snapping is wrong when trying to snap near a clip #98

@BaronAWC

Description

@BaronAWC

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:

  1. make a rectangle and convert to clip
  2. start making a line
  3. hold option/alt to enable snapping and go near a corner of the rectangle
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions