mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-07 09:10:38 +01:00
Version 4.16.1. Improved manipulation and mouse pan handling
This commit is contained in:
parent
30ad3f6f0f
commit
4146db12e6
|
|
@ -81,7 +81,7 @@ namespace MapControl
|
||||||
translation.X += e.DeltaManipulation.Translation.X;
|
translation.X += e.DeltaManipulation.Translation.X;
|
||||||
translation.Y += e.DeltaManipulation.Translation.Y;
|
translation.Y += e.DeltaManipulation.Translation.Y;
|
||||||
rotation += e.DeltaManipulation.Rotation;
|
rotation += e.DeltaManipulation.Rotation;
|
||||||
scale *= (e.DeltaManipulation.Scale.X + e.DeltaManipulation.Scale.Y) / 2d;
|
scale *= e.DeltaManipulation.Scale.LengthSquared / 2d;
|
||||||
|
|
||||||
await InvokeTransformAsync(() => TransformMap(e.ManipulationOrigin, translation, rotation, scale));
|
await InvokeTransformAsync(() => TransformMap(e.ManipulationOrigin, translation, rotation, scale));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue