MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.4k stars 306 forks source link

Customize trackpad bindings for pan/zoom #194

Open jagot opened 5 years ago

jagot commented 5 years ago

I'm on a Mac and for me the natural ways of interacting with a plot are

At the moment, two-finger drag zooms and to pan, I have to press and hold two fingers down while dragging, which is a little bit awkward. Is was also surprised that these actions does not zoom/pan the data inside the axes, but rather zoom/pan the axes as a whole, within the plot window. I am not sure if this is as intended. Also, I have not figured out how to do a selection zoom.

pbouffard commented 3 years ago

Haha, tried to thumbs-up this issue and ended up removing my own thumbs-up from who knows when ago. At any rate I'd be very interested in more natural navigation. I'd be happy to give it a crack at a PR though I don't really know where to start. If I'm not mistaken Makie uses GLFW which seems to not yet have touch input released but there are efforts towards it: https://github.com/glfw/glfw/pull/1736.