Feature request #7669

Usage of the mouse scroll wheel

Added by zirneklitis - about 7 years ago. Updated about 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Pull Request or Patch supplied:No Resolution:wontfix
Easy fix?:No Copied to github as #:16586

Description

At present the mouse scroll wheel is used for zooming in/out. More advanced key board – the mouse scroll wheel combinations are used in other software, e.g., GIMP and Inkscape:

scroll wheel away – pans canvas down;
scroll wheel to user – pans canvas up;
[Shift]_scroll wheel away – pans canvas right;
[Shift]_scroll wheel to user – pans canvas left;
[Ctrl]_scroll wheel away – zoom in;
[Ctrl]_scroll wheel to user – zoom out.

The implementation of such combinations will be very helpful during digitising.

mouse_wheel.ogv - Example video (2.37 MB) zirneklitis -, 2013-04-22 01:06 AM

History

#1 Updated by Nathan Woodrow about 7 years ago

I think

[Shift]_scroll wheel away – pans canvas right;
[Shift]_scroll wheel to user – pans canvas left;
[Ctrl]_scroll wheel away – pans canvas down;
[Ctrl]_scroll wheel to user – pans canvas up;

would be better. Although now the meta keys are passed up to the QgsMapTool class so that people can override their behavior, might not be good to add our own on those keys.

#2 Updated by zirneklitis - about 7 years ago

It depends. ;-) My suggested behaviour is more system wide compatible. Even Windows 7 File Explorer use Ctrl_Mouse-Wheel for Zooming. Nathan's suggestion is more compatible with used-to actions in QGIS and ArcMap.

#3 Updated by Matthias Kuhn about 7 years ago

Just to mention it:
Currently there already is the possibility to pan the canvas by holding the [Space] key down.

My vote also goes to default behavior (without modifiers) being zoom.

#4 Updated by zirneklitis - about 7 years ago

Thank You for useful tip! I have missed it.

Matthias Kuhn wrote:

..
Currently there already is the possibility to pan the canvas by holding the [Space] key down.
..

#5 Updated by Nathan Woodrow about 7 years ago

zirneklitis - wrote:

It depends. ;-) My suggested behaviour is more system wide compatible. Even Windows 7 File Explorer use Ctrl_Mouse-Wheel for Zooming. Nathan's suggestion is more compatible with used-to actions in QGIS and ArcMap.

We are not building a file explorer so pan as the default action make no sense.

#6 Updated by zirneklitis - about 7 years ago

File Explorer was just an example. The key combinations suggested by me is used in many applications. It does not matter whether I am working wit my text documents, image from digital camera or just browsing files. In any application mouse wheel behaves the same – Scrolling and [Shift]_Scrolling moves the content of the window and [Ctrl]_Scrolling Zooms in and out.

#7 Updated by Matthias Kuhn about 7 years ago

Well-known map applications coming to my mind spontaneously use the scrollwheel without modifiers for zooming
  • OSM
  • Google

#8 Updated by Borys Jurgiel about 7 years ago

It could be user-configurable, and the third option would be to only zoom without modifiers (reserving them for QMapTool). I insist for the third option, as my personal use of modifiers in QgsMapTool will be inserting rectangle objects by click in centroid, while width, height and angle are adjusted by the wheel with Shift/Ctrl/both.

#9 Updated by Nathan Woodrow about 7 years ago

  • Status changed from Open to Closed
  • Resolution set to wontfix

I disagree I don't think we need yet another thing to be configured. If it's configurable then some user won't be able to use you plugin at all.

Closing as wontfix because:

  • All decent GIS tools use mouse wheel to zoom.
  • Hold Space and moving mouse is a shortcut for pan
  • Direction arrows can pan the map (while using tools)
  • Middle mouse button can pan the map (while using tools)

#10 Updated by belg4mit - about 5 years ago

I would recommend revisiting this, and adopting it in core. As noted by the original requestor, it seems to be a pretty standard feature in a variety of graphics packages, and therefore standardized. There would not be a need to provide additional customization, although that could be implemented via a plugin should someone be unhappy with the defaults, if the feature is implemented with non-hardcoded values. To omit such basic functionality is very frustrating, and results in significant losses of productivity as it is necessary to frequently switch back and forth between tools.

There may be many alternatives but:

1) They are not compliant with muscle memory established for this same behavior in other software; just as I was trying to test the space + mouse version I found myself holding Alt instead.
2) They are not intuitive and seemingly not well documented. This feature request is the first place I've encountered these
3) Scroll wheel gives much finer control than the arrows

Additionally, the display does not update while using the other options variants, which makes it difficult to tell if one has scrolled sufficiently.

#11 Updated by Nathan Woodrow about 5 years ago

The only thing we would implement is:

[Shift]_scroll wheel away – pans canvas right;
[Shift]_scroll wheel to user – pans canvas left;
[Ctrl]_scroll wheel away – pans canvas down;
[Ctrl]_scroll wheel to user – pans canvas up;

As I can see some values in that, however having non modify for zoom on mouse wheel is standard GIS software and that isn't going to change as I don't see any good argument for doing so.

Also available in: Atom PDF