Mercurial > hg > octave-lyh
changeset 17374:1102c81e9d60
Eliminate hysteresis when using mouse wheel for zooming in FLTK.
Zooming in N steps and zooming out N steps now returns to original magnification.
* libinterp/dldfcn/__init_fltk__.cc(handle): Zoom by factor or 1/factor.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 03 Sep 2013 17:20:17 -0700 |
parents | 9b7ca74489c7 |
children | e0b9d43395e2 |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -1392,7 +1392,7 @@ // Determine if we're zooming in or out. const double factor = - (Fl::event_dy () > 0) ? 1.0 + Vwheel_zoom_speed + (Fl::event_dy () > 0) ? 1 / (1.0 - Vwheel_zoom_speed) : 1.0 - Vwheel_zoom_speed; // Get the point we're zooming about.