diff options
Diffstat (limited to 'src/View/TopView.cpp')
-rw-r--r-- | src/View/TopView.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/View/TopView.cpp b/src/View/TopView.cpp index e0004fb..29fc242 100644 --- a/src/View/TopView.cpp +++ b/src/View/TopView.cpp @@ -152,7 +152,10 @@ void TopView::zoom(Gui::RenderArea *renderArea, int zoom, float x, float y) { renderArea->queue_draw(); } -void TopView::move(Gui::RenderArea *renderArea, float x, float y) { +void TopView::move(Gui::RenderArea *renderArea, float x, float y, unsigned int state) { + if(!(state & GDK_BUTTON3_MASK)) + return; + xCenter += x/scale; yCenter += y/scale; |