Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

Edited Unassigned: Map drag isn't work [16068]

$
0
0
Hi!
I found the strange bug. Map isn't drag by mouse. All other function are workable.
I found, that resone is negative value of the field Timestamp in method OnMouseMove of class GMap.NET.WindowsPresentation.GMapControl. Therefore code
if(e.Timestamp - onMouseUpTimestamp < 55)
{
Debug.WriteLine("OnMouseMove skipped: " + ((uint)e.Timestamp - onMouseUpTimestamp) + "ms");
return;
}
isn't work properly.
I changed data type of variable onMouseUpTimestamp to uint and correct your code as
// Изменил тип данных на uint
if((uint)e.Timestamp - onMouseUpTimestamp < 55)
{
Debug.WriteLine("OnMouseMove skipped: " + ((uint)e.Timestamp - onMouseUpTimestamp) + "ms");
return;
}
and component has began to work properly.
OS Windows 8 64 bit, .NET Framework 3.5
Thank You for your job!
Good luck!

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>