Translate fixed shapes - #1497
Conversation
9972d2f to
aa6ec94
Compare
…/flipping Fixed-size shapes previously behaved like fixed-aspect-ratio shapes: the click/mousedown point stayed pinned as one corner while the opposite corner tracked the mouse, flipping the shape around the axes. - fixed-size shapes now anchor the box at the current mouse position instead of the original origin, and always extend in a fixed direction so the box translates with the cursor instead of flipping across quadrants. - previously always used the fixed mousedown point as one corner of the live drag-preview. It now uses the selection constraint's anchor corner so the preview also tracks correctly.
109ade8 to
60499f2
Compare
60499f2 to
3f3bf3c
Compare
|
This works as requested, but somehow revealed that I had behavior opinions I didn't realize I had until using it. For non-fixed size shapes, we either click and drag or click multiple times. For click-and-drag this works mostly as I expect, but I sort of expected either I would drag the center rather than a corner or it would sort of follow the mouse such that if the mouse would leave the annotation it would follow. For the click opposite corners, this is accentuated even more -- my first try was to click what I assumed was the top left and then move down and to the right. Since on the web-Mercator map we have a right-handed coordinate system, we end up creating the bottom left first. I'm not sure if we should change the current behavior, and, if so, what it should be. |
Screencast.from.08-25-2026.12.41.33.PM.webm