along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include "editor.h"
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