a boatload of minor and middle-sized changes to try to speed up undo. imperfect,...
[ardour.git] / gtk2_ardour / canvas-hit.cc
1 #include "canvas-note.h"
2 #include "midi_region_view.h"
3 #include "public_editor.h"
4 #include "evoral/Note.hpp"
5 #include "utils.h"
6
7 using namespace ARDOUR;
8
9 namespace Gnome {
10 namespace Canvas {
11
12 bool
13 CanvasHit::on_event(GdkEvent* ev)
14 {
15         if (!_region.get_trackview().editor().canvas_note_event (ev, this)) {
16                 return CanvasNoteEvent::on_event (ev);
17         } else {
18                 return true;
19         }
20 }
21
22 void
23 CanvasHit::move_event(double dx, double dy)
24 {
25         move_by (dx, dy);
26 }
27
28 } // namespace Gnome
29 } // namespace Canvas