Fix timeline zoom oddities after dragging a very small zoom rectangle.
authorCarl Hetherington <cth@carlh.net>
Sun, 14 Feb 2021 23:42:55 +0000 (00:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Feb 2021 02:16:16 +0000 (03:16 +0100)
src/wx/timeline.cc

index 5a98c82..3187792 100644 (file)
@@ -625,6 +625,8 @@ Timeline::left_up_zoom (wxMouseEvent& ev)
 
        if ((bottom_right.x - top_left.x) < 8 || (bottom_right.y - top_left.y) < 8) {
                /* Very small zoom rectangle: we assume it wasn't intentional */
+               _zoom_point = optional<wxPoint> ();
+               Refresh ();
                return;
        }