Re: [OpenMap Users] Turn mouse MouseWheel Zoom OFF

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 14 Apr 2009 23:54:30 -0400

Hi Sean,

There isn't a setting on the MouseModes that let you turn off the
mouse wheel responses, but you could extend the MouseModes you want
and override the method that causes the scale to change when the mouse
wheel moves:

public void mouseWheelMoved(MouseWheelEvent e) {

}

Just override the method to do a no-op, and you should get the desired
behavior. It's a good idea to add a setting to allow this behavior to
be turned off, but if you want this behavior now, this would be the
way to do it.

Hope this helps,

Don


On Apr 11, 2009, at 12:30 PM, Sean Kaner wrote:

> Is there any way to stop the map from zooming or changing the scale
> as a
> result of the mouseWheel being moved.
>
> Thanks,
>
> Sean
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Apr 14 2009 - 23:56:37 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT