-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
I want to create a new rectangle and allow the user to pick a starting point and drag to size the rectangle.
Repro:
- Create a stage with a size smaller than the page.
- Wire up pointerdown, pointermove, pointerup events.
- On pointer down, create a shape and add it to the stage. Capture the pointer.
- On pointer move, resize the shape based on the pointer movement. Ensure it has the pointer capture.
- On pointer up, release the pointer.
Expected:
Like pointer capture on HTML elements, would continue to get pointer move events even when pointer is outside the stage.
Actual:
- Shape is resized as the pointer moves within the stage.
- Shape stops resizing if the pointer moves outside stage bounds.
- Once pointer moves back within stage bounds, resizing continues.
- If the mouse up is outside the stage bounds the on pointer up is never called.
Note: The Transformer allows dragging handles outside the stage boundaries and works great, but I can't find a way using stage to do the same thing with the pointer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels