# HG changeset patch # User Rik # Date 1378254017 25200 # Node ID 1102c81e9d60fe50318ffd51fb9aaf06c09fdd45 # Parent 9b7ca74489c7a148f0b61384ca5b4a049d573f05 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. diff -r 9b7ca74489c7 -r 1102c81e9d60 libinterp/dldfcn/__init_fltk__.cc --- a/libinterp/dldfcn/__init_fltk__.cc Tue Sep 03 17:03:47 2013 -0700 +++ b/libinterp/dldfcn/__init_fltk__.cc Tue Sep 03 17:20:17 2013 -0700 @@ -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.