From 6b7bae8a3437d083cc470496d521790dd682e6f0 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Thu, 8 Sep 2022 16:04:46 +1000 Subject: [PATCH] Add a moveTo method to ItemTab, which enables panning and scrolling in all ItemTab windows, like GodleyTab/ PlotTab etc. --- model/itemTab.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/model/itemTab.h b/model/itemTab.h index 3656fffe1..5330ca14a 100644 --- a/model/itemTab.h +++ b/model/itemTab.h @@ -85,6 +85,12 @@ namespace minsky void mouseDown(float x, float y) override; void mouseUp(float x, float y) override; void mouseMove(float x, float y) override; + void moveTo(float x, float y) override + { + offsx=x; + offsy=y; + requestRedraw(); + } virtual ItemPtr itemAt(float x, float y); void displayDelayedTooltip(float x, float y);