-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improving movement inside workspace #7595
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it and it works fine, just some code suggestions.
Hm, the build is failing (I'm guessing Carla isn't linked to lmms). Try moving the implementation of |
Should there be a cursor change associated with panning the workspace, perhaps? |
Sure! What type of cursor should be displayed? Maybe |
Probably |
I like it. Trying it out, I feel like if the scroll limits were removed/expanded, it would feel more natural to be able to drag the view "out of bounds", instead of being capped to the position of the min/max windows. You don't have to implement that though, I'm just thinking out loud. |
I don't know how to do this unfortunately, it seems like SubWindows resize the scroll bars when they are moved. An other method of moving exists for QMdiArea: |
I implemented |
Curious why |
I'm also thinking this feature should be opt-in. |
I felt that it is unnecessary and could be annoying because the workspace covers 80% of the screen and the default cursor looks better in that case, but I could implement it if needed.
I think users could opt out by not using this feature, I believe there is no point to make this optional if it is an improvement for all platforms and I believe it is. |
Okay. In my opinion, not having
Edit: Actually, I thought about it a bit more. I do agree that the feature can be opt out as well. |
I will implement this then. |
If you are not truly satisfied with the suggestion @szeli1, I think another option we can do is to keep the arrow cursor when the user is not pressing down on anything. Then, you could use the open hand cursor when the user initially presses down on the mouse, and when dragging, use the closed hand cursor. When they stop dragging but are still holding the mouse, switch back to the open hand cursor, and when the mouse is released, move back to the arrow cursor. You might not even need to add an opt-in/opt-out setting actually if you don't want to, as I think discovering the feature by pressing down on the workspace is enough if the cursor switches are implemented the way I described it above. I think this is somewhat subjective ultimately, but let me know what you think of this idea. |
This would require a timer, because Edit: please let me know if you approve this or you would rather like your idea implemented.
I think it was a good suggestion to add an opt out option, since it will enable users who really don't like the feature to turn it off, it will leave the decision to the user. |
This Pull Request adds the ability for users to move inside the workspace without using the scroll bars.
This change allows the user to click on the workspace (where the editors are located) without clicking on a
SubWindow
, and move by mouse drag. I believe this improves the workflow significantly, because instead of needing to move the mouse over to the scroll bars, the user can simply click on the workspace background and move both vertically and horizontally.As far as I know there is no Issue open referencing this feature.