Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier key for moving blocks #126

Closed
tskomudek opened this issue Feb 21, 2024 · 4 comments
Closed

Modifier key for moving blocks #126

tskomudek opened this issue Feb 21, 2024 · 4 comments

Comments

@tskomudek
Copy link

Hi Bart,

with limited space for the designer view, we learned that we often accidentally move blocks(container, switch) when we want to move the viewport instead. When not switched to readonly, the only option to move the viewport is to zoom out and click into the empty space. But if you zoomed into a larger workflow, you often just want to move the view a bit to continue with configuring the next steps.
A good option would be to move blocks only when a user presses also a modifier key (like ALT, CTRL).

What do you think ?

Also - keyboard shortcuts for moving and zooming would be great.

Tilo

@b4rtaz
Copy link
Collaborator

b4rtaz commented Feb 21, 2024

Hello @tskomudek!

good option would be to move blocks only when a user presses also a modifier key (like ALT, CTRL).

Currently there is an opposite feature, if you click the scroll button of your mouse then you can only move the canvas even if you not enabled "Turn on/off drag and drop" mode.

I like your idea with more keyboard shortcuts. But for the blocking drag&drop I would prefer to keep the consistency with the scroll button. So if you press CTRL, then you cannot drag&drop.

@tskomudek
Copy link
Author

Hi Bart,

i agree, this would also work for us.
Using the scroll button on the mouse works find btw., but it's not so obvious - so adding the option for an additional key would still be reasonable.

Thank you

Tilo

@b4rtaz
Copy link
Collaborator

b4rtaz commented Feb 25, 2024

I've just released the 0.19.2 version. It intoduces the alt key support. If you press the alt key, the drag and drop is disabled.

Also - keyboard shortcuts for moving and zooming would be great.

After I while I think this shouldn't be implemented in the designer directly. I see 2 solutions:

  • you can implement it at the application level, key handlers could use the external control bar controller to zoom the canvas,
  • we could implement it as the optional pro extension.

@tskomudek
Copy link
Author

Hi Bart,

thanks for taking care of this.
As for the zooming - the external controller interface only allows for zooming in/out, but not to get or set the current zoom level directly. Maybe that's worth adding in a future version.

Best

T.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants