Skip to content

Commit

Permalink
Add a moveTo method to ItemTab, which enables panning and scrolling i…
Browse files Browse the repository at this point in the history
…n all ItemTab windows, like GodleyTab/ PlotTab etc.
  • Loading branch information
highperformancecoder committed Sep 8, 2022
1 parent 7d2b117 commit 6b7bae8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions model/itemTab.h
Expand Up @@ -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);

Expand Down

0 comments on commit 6b7bae8

Please sign in to comment.