mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Update Map.WPF.cs
This commit is contained in:
parent
13d6502f9d
commit
365fdb75dc
1 changed files with 2 additions and 2 deletions
|
|
@ -92,10 +92,10 @@ namespace MapControl
|
|||
if (mousePosition.HasValue)
|
||||
{
|
||||
var position = e.GetPosition(this);
|
||||
var translation = position - mousePosition.Value;
|
||||
var translation = new Point(position.X - mousePosition.Value.X, position.Y - mousePosition.Value.Y);
|
||||
mousePosition = position;
|
||||
|
||||
TranslateMap((Point)translation);
|
||||
TranslateMap(translation);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue