From e3e024b94cc8b1dd9124284201585fe1c7219c33 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 14 Jan 2004 00:28:57 +0000 Subject: [PATCH] fix grabbing issue on sides of piano roll --- pandatool/src/win-stats/winStatsPianoRoll.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandatool/src/win-stats/winStatsPianoRoll.cxx b/pandatool/src/win-stats/winStatsPianoRoll.cxx index c8be9fe9ec..d9a134f1bd 100755 --- a/pandatool/src/win-stats/winStatsPianoRoll.cxx +++ b/pandatool/src/win-stats/winStatsPianoRoll.cxx @@ -423,8 +423,9 @@ consider_drag_start(int mouse_x, int mouse_y, int width, int height) { return DM_guide_bar; } - } else { - // The mouse is above or below the graph; maybe create a new + } else if (mouse_x < _left_margin - 2 || + mouse_x > width - _right_margin + 2) { + // The mouse is left or right of the graph; maybe create a new // guide bar. return DM_new_guide_bar; }