mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Map MouseWheel handler
This commit is contained in:
parent
65517b43cc
commit
404ddbb0f7
3 changed files with 15 additions and 12 deletions
|
|
@ -84,7 +84,7 @@ namespace MapControl
|
|||
if (Math.Abs(mouseWheelDelta) >= 1d)
|
||||
{
|
||||
// Zoom to integer multiple of MouseWheelZoomDelta.
|
||||
|
||||
//
|
||||
ZoomMap(point.Position,
|
||||
MouseWheelZoomDelta * Math.Round(TargetZoomLevel / MouseWheelZoomDelta + mouseWheelDelta));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue