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

Usage of the mouse scroll wheel #16586

Closed
qgib opened this issue Apr 21, 2013 · 11 comments
Closed

Usage of the mouse scroll wheel #16586

qgib opened this issue Apr 21, 2013 · 11 comments

Comments

@qgib
Copy link
Contributor

qgib commented Apr 21, 2013

Author Name: zirneklitis - (zirneklitis -)
Original Redmine Issue: 7669


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.


@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2013

Author Name: Nathan Woodrow (@NathanW2)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2013

Author Name: zirneklitis - (zirneklitis -)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2013

Author Name: Matthias Kuhn (@m-kuhn)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: zirneklitis - (zirneklitis -)


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.
..

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: Nathan Woodrow (@NathanW2)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: zirneklitis - (zirneklitis -)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: Matthias Kuhn (@m-kuhn)


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

  • OSM
  • Google

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: Borys Jurgiel (@borysiasty)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2013

Author Name: Nathan Woodrow (@NathanW2)


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)

  • status_id was changed from Open to Closed
  • resolution was changed from to wontfix

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2015

Author Name: belg4mit - (belg4mit -)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2015

Author Name: Nathan Woodrow (@NathanW2)


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.

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

No branches or pull requests

1 participant