Skip to content

Commit 6b7bae8

Browse files
Add a moveTo method to ItemTab, which enables panning and scrolling in all ItemTab windows, like GodleyTab/ PlotTab etc.
1 parent 7d2b117 commit 6b7bae8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

model/itemTab.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ namespace minsky
8585
void mouseDown(float x, float y) override;
8686
void mouseUp(float x, float y) override;
8787
void mouseMove(float x, float y) override;
88+
void moveTo(float x, float y) override
89+
{
90+
offsx=x;
91+
offsy=y;
92+
requestRedraw();
93+
}
8894
virtual ItemPtr itemAt(float x, float y);
8995
void displayDelayedTooltip(float x, float y);
9096

0 commit comments

Comments
 (0)