You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven’t looked through the other drawing tools, but any draggable component will be broken if it defines its own custom pointer event handlers. The fix, in #6550, is to ensure that any existing handler is always called, for each pointer event. Otherwise, adding a custom handler to a draggable component can prevent the corresponding draggable handler from running.
In this case, polygon tools add a pointerdown handler which overrides the draggable pointerdown handler.
Package
Describe the bug
The polygon drawing tool has drag handles, but dragging them doesn't do anything.
To Reproduce
Steps to reproduce the behavior:
You can also reproduce the bug in the storybook: https://zooniverse.github.io/front-end-monorepo/@zooniverse/classifier/index.html?path=/story/drawing-tools-polygon--active
Screenshots
Screen.Recording.2024-12-12.at.15.34.20.mov
Expected behavior
Dragging the drag handles should pull the polygon into a new shape.
The text was updated successfully, but these errors were encountered: