]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/potlatch2/controller/ControllerState.as
Add mousewheel scrolling, but I'll bet this doesn't work on OSX
[potlatch2.git] / net / systemeD / potlatch2 / controller / ControllerState.as
index be13bb1792507bfda7f8df1ff53d9ccf830b5118..08f57df2a4b4b3b61010bcd11c4b115328e7711d 100644 (file)
@@ -103,7 +103,13 @@ package net.systemeD.potlatch2.controller {
                                controller.map.setHighlight(focus, { hover: true });
                        } else if ( event.type == MouseEvent.MOUSE_OUT ) {
                                controller.map.setHighlight(focus, { hover: false });
-                       }
+            } else if ( event.type == MouseEvent.MOUSE_WHEEL ) {
+                if (event.delta > 0) {
+                  map.zoomIn();
+                } else if (event.delta < 0) {
+                  map.zoomOut();
+                }
+            }
                        return null;
                }