From 1d6f52984dfef698516ae3fef142c80c2029fc7b Mon Sep 17 00:00:00 2001 From: neoraider Date: Sat, 3 May 2008 13:05:01 +0000 Subject: zoomedit: * Some MapView improvements --- src/View/TopView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/View/TopView.cpp') 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; -- cgit v1.2.3