Merged with trunk R1612.
[ardour.git] / gtk2_ardour / editor_hscroller.cc
index 8504667daa7efb6183ca058dc890f0968b61419d..f5f94c416372ada64ea1ef53a5a4f932b964dc08 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include "editor.h"
@@ -34,22 +33,20 @@ Editor::hscrollbar_allocate (Gtk::Allocation &alloc)
 bool
 Editor::hscrollbar_button_press (GdkEventButton *ev)
 {
-       edit_hscroll_dragging = true;
-       return true;
+       _dragging_hscrollbar = true;
+       return false;
 }
 
 bool
 Editor::hscrollbar_button_release (GdkEventButton *ev)
 {
+       _dragging_hscrollbar = false;
+
        if (session) {
-               if (edit_hscroll_dragging) {
-                       // lets do a tempo redisplay only on button release, because it is dog slow
-                       tempo_map_changed (Change (0));
-                       edit_hscroll_dragging = false;
-               }
+
        }
 
-       return true;
+       return false;
 }
 
 void