[mapguide-users] OnMouseWheel Zoom in and Zoom out

SriRam007 binod_tripathy at yahoo.co.in
Mon Apr 12 07:20:59 EDT 2010


Hi, 
Is there any way to disable the Mouse Wheel Zoom Function 

I want to enable and disable this functionality accoding to some conditions 

I found one soln that is to use a custom function OnMouseWheel event on the
Map by hooking the original function

var origOnMouseWheel = null; 
var mapFrame = viewerFrame.mapFrame; 
origOnMouseWheel = mapFrame.OnMouseWheel; 

I just know the code as given above But dont know how to use it so that on
every OnMouseWheel event My Function should call. not the original one which
is inside viewers file.



OR Is there any other solution

Please anyone help me... 



thanks 

-- 
View this message in context: http://n2.nabble.com/OnMouseWheel-Zoom-in-and-Zoom-out-tp4889474p4889474.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list