summaryrefslogtreecommitdiffstats
path: root/src/View/TopView.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-05-03 15:05:01 +0200
committerneoraider <devnull@localhost>2008-05-03 15:05:01 +0200
commit1d6f52984dfef698516ae3fef142c80c2029fc7b (patch)
tree079f955dc1605d1f9b8426b5e178e42b03d0fbf5 /src/View/TopView.cpp
parenteb096e97d63c3bdbb2913dc0bb8abacef5ee3bf1 (diff)
downloadzoomedit-1d6f52984dfef698516ae3fef142c80c2029fc7b.tar
zoomedit-1d6f52984dfef698516ae3fef142c80c2029fc7b.zip
zoomedit:
* Some MapView improvements
Diffstat (limited to 'src/View/TopView.cpp')
-rw-r--r--src/View/TopView.cpp5
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;