-
Notifications
You must be signed in to change notification settings - Fork 34
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
Zoom without CTRL/CMD #26
Comments
We do have an example at least: https://github.com/emilk/egui/tree/0f6310c598b5be92f339c9275a00d5decd838c1b/examples/custom_plot_manipulation. |
When I drag two fingers across my trackpad, I get 2D scroll events. That should pan the plot, not zoom. I don't see how you would distinguish that from a 1D scroll action on a mouse. |
Dragging (if that's what you mean by pan) should only be done with pressing down. |
I can see why you would want that. For contrast, the Maps app on my Mac works pretty similar to egui_plots, with pinch-to-zoom and scroll-to-pan. I guess we want to add some settings then so users can control this behavior. |
How hard would that be to implement? Is that something a noobie like me could do? O.o |
Is your feature request related to a problem? Please describe.
I am using
egui_plot
to draw a plot and currently have to press ctrl/cmd in order to zoom in and out with the scroll wheel.Describe the solution you'd like
I want to zoom in and out with the scroll wheel directly without having to press ctrl/cmd.
Describe alternatives you've considered
Somehow hacking that in myself. But this got even harder because now scrolling is done by egui and seems to be strictly coupled with ctrl/cmd.
The text was updated successfully, but these errors were encountered: