ZoomChanged (); /* EMIT_SIGNAL */
- //reset_scrolling_region ();
+ ArdourCanvas::GtkCanvasViewport* c;
+
+ c = get_time_bars_canvas();
+ if (c) {
+ c->canvas()->zoomed ();
+ }
+ c = get_track_canvas();
+ if (c) {
+ c->canvas()->zoomed ();
+ }
if (playhead_cursor) {
playhead_cursor->set_position (playhead_cursor->current_frame ());
}
resume_redisplay ();
-
- /* XXX this seems like a hack and half, but its not clear where to put this
- otherwise.
- */
-
- //reset_scrolling_region ();
}
void
{
_scroll_offset_x = x;
_scroll_offset_y = y;
+
+ enter_leave_items (0); // no current mouse position
+}
+
+void
+Canvas::zoomed ()
+{
+ enter_leave_items (0); // no current mouse position
}
/** Render an area of the canvas.
void scroll_to (Coord x, Coord y);
virtual Rect visible_area () const = 0;
+ void zoomed();
+
std::string indent() const;
std::string render_indent() const;
void dump (std::ostream&) const;