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 5a98c829ad8815d3c0cd512c6db09ffd89ebfe72..3187792bea4ea30545341917ea72a063f43f4a55 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;
        }