personalizedrefrigerator / js-draw

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a freehand drawing library for JavaScript and TypeScript.
https://personalizedrefrigerator.github.io/js-draw/typedoc/
MIT License
79 stars 8 forks source link

Sometimes difficult to resize the selection if holding the Control key #42

Open personalizedrefrigerator opened 10 months ago

personalizedrefrigerator commented 10 months ago

Describe the bug

Holding Ctrl, then dragging a selection tool handle, can be difficult/impossible. For context, Ctrl is the default "snap-to-grid" shortcut and snaps input events (including mouse-down events) to a grid.

To Reproduce

  1. Draw something
  2. Switch to the selection tool.
  3. Select everything
  4. Hold ctrl
  5. Try to drag the resize handle

Observed behavior

Depending on the location of the resize handle, the stroke is dragged instead.

Expected behavior

The stroke should be resized.

Screenshots

If applicable, add screenshots to help explain the issue.

Platform

Wladefant commented 10 months ago

I am not able to understand what you mean, could you add a screen recording?

personalizedrefrigerator commented 10 months ago

This only affects usage on devices with a Ctrl key. For example,

Screencast

On these devices, Ctrl means "snap to grid".