- int tx, ty;
- controls_ebox.translate_coordinates (*_editor.get_track_canvas(), ev->x, ev->y, tx, ty);
-
- /* x-axis of track headers is not shared with the canvas, but
- the y-axis is, so we we can get a valid translation here.
- */
-
- Duple canvas_coord = _editor.get_track_canvas()->canvas()->window_to_canvas (Duple (tx, ty));
- ev->y = (int) floor (canvas_coord.y);
-
- _editor.drags()->motion_handler ((GdkEvent *) ev, false);
- _editor.maybe_autoscroll (false, true, false, ev->y_root < _resize_drag_start);