From 56047a094cdc1f41b369c6796690cded85e2a2c6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 30 Mar 2019 01:19:47 +0100 Subject: AutomationRangeDrag tweaks for stacked layer view Use y-pos and height of given TAV *layer* where the drag was initiated. --- gtk2_ardour/editor_drag.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor_drag.h') diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 1147d82b96..c24ff32dc0 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -1244,7 +1244,7 @@ class AutomationRangeDrag : public Drag { public: AutomationRangeDrag (Editor *, AutomationTimeAxisView *, std::list const &); - AutomationRangeDrag (Editor *, std::list const &, std::list const &, double y_origin); + AutomationRangeDrag (Editor *, std::list const &, std::list const &, double y_origin, double y_height); void start_grab (GdkEvent *, Gdk::Cursor* c = 0); void motion (GdkEvent *, bool); @@ -1257,7 +1257,7 @@ public: private: void setup (std::list > const &); - double y_fraction (boost::shared_ptr, double global_y_position) const; + double y_fraction (double global_y_position) const; double value (boost::shared_ptr list, double x) const; std::list _ranges; @@ -1272,6 +1272,7 @@ private: std::list _lines; double _y_origin; + double _y_height; bool _nothing_to_drag; bool _integral; }; -- cgit v1.2.3