Select to view content in your preferred language

Mouse Wheel in V2 Beta

639
3
05-27-2010 10:12 AM
centuitcentuit
Emerging Contributor
Hi,

1. Is there a reason why the mouse wheel event does not get fired when the a use moves the wheel ? is it a bug ?
2. Is there a way to prevent the map from zooming using the mouse wheel ?

Please advise

Thanks
0 Kudos
3 Replies
DeminHu
Deactivated User
Do you still have this problem? my mouse wheel works fine in V2 Beta.
0 Kudos
centuitcentuit
Emerging Contributor
Yes, the mouse wheel works fine. My problem is when I subscribe to the MouseWheel event, the event does not get called. My goal is to prevent the mouse wheel from zooming the map.
0 Kudos
centuitcentuit
Emerging Contributor
I found a solution, not pretty, but it works....

For those that re interested here how it works:

I create a layer, add a user control with Background=Transparent, and set the Envelope to the full size of the map.
Then subscribe to the MouseWheel events and set Handle=true;
0 Kudos