Profile Picture

NMouseWheelScrollAndZoomTool scrolls enclosing panel as well as map

Posted By Kevin Harrison 10 Years Ago

NMouseWheelScrollAndZoomTool scrolls enclosing panel as well as map

Author
Message
Kevin Harrison
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865

One way to prevent this is to cast the MouseEventArgs to HandledMosueEventArgs and set Handled to true. However, I can see no way to achieve this, even though I have my own custom class derived from the tool (which restricts the action to occuring with Shift depressed).

How can I stop the panel scrolling as well as the map in this case?

Thanks

Kevin





Similar Topics


Reading This Topic