Skip to content

when resizing a box and pressing Shift, cursor no longer touches handle #1

Open
@roryokane

Description

how to reproduce

  • go to http://styloapp.com/
  • click the gray rectangle in the top-left to add a gray rectangle to the stage
  • Drag the bottom-right resize handle around. The corner sticks to the mouse position; that’s good.
  • now try dragging the handle around again, but occasionally tap the Shift key on the keyboard

expected

While dragging while Shift is released, the grabbed corner moves back to right under the mouse cursor

actual

While dragging while Shift is released, the grabbed corner moves around at a position relative to the mouse and not under it. The corner moves as if under an invisible mouse cursor at a position translated from the real position.

comments

Playing around with dragging and Shift should easily show what rules Stylo currently follows for resizing, and what situations will mess up the dragging handle position. What’s left is to change those rules to match the standard and intuitive behavior for similar object-layout apps.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions