|
From: Petr M. <mi...@ph...> - 2012-07-10 15:26:45
|
> >> So it would be very helpful to have not just
> >> zoom_around_mouse('+');
> >> but rather something like
> >> zoom_around_mouse(1.134);
I have added this to the patch.
Now you can use a shift factor for scrolling (10% shift is the default) and
speed for zooming (cca 0.92 and 1.14 being the default, otherwise
pow(0.92 or 1.14, speed).
Maybe the shift can also be a power instead of that value.
Please try it. Think it over how to pass and evaluate those delta's of fine
values of mousepad or touchscreen.
> if you redefine the meaning of scrolling event, then please provide
> drag-and-drop to move around the graph.
You mean click-and-drag, not drag&drop (=dropping objects into the canvas)?
That would need to go inside button press and release functions in mouse.c.
If MB3 is clicked (and not released), then allow dragging, otherwise show
current zoom box.
---
Petr
|