[mapguide-users] scroll wheel zooming and middle button pan

Jackie Ng jumpinjackie at gmail.com
Mon May 12 19:45:41 PDT 2014


OpenLayers is hard-coded to use the left mouse button for dragging.

https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Handler/Drag.js#L153

You'll have to modify this handler to accept the middle mouse button as well
and then modify the (DragPan?) control to tell the drag handler you want
middle mouse button support as well.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/scroll-wheel-zooming-and-middle-button-pan-tp5139883p5139897.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list