On mouse move evenhandler when we drag a item over
other one we lost it and often the drag stop:
In the GMapControl.cs I add this boolean
public bool markerAsClick = false;
The caller setup the flag
void MainMap_MouseMove(object sender, MouseEventArgs e)
{
if(e.Button == MouseButtons.Left && isMouseDown)
{
if(CurentRectMarker == null)
{
if(currentMarker.IsVisible)
{
currentMarker.Position = MainMap.FromLocalToLatLng(e.X, e.Y);
}
}
else // move rect marker
{
MainMap.markerAsClick = true;
PointLatLng pnew = MainMap.FromLocalToLatLng(e.X, e.Y);
. ..
......
}
MainMap.Refresh(); // force instant invalidation
}
}
protected override void OnMouseMove(MouseEventArgs e)
{
if(!markerAsClick)
{
.........
..............
}
base.OnMouseMove(e);
}
for me it's work fine
but probably you have a better place to do this
other one we lost it and often the drag stop:
In the GMapControl.cs I add this boolean
public bool markerAsClick = false;
The caller setup the flag
void MainMap_MouseMove(object sender, MouseEventArgs e)
{
if(e.Button == MouseButtons.Left && isMouseDown)
{
if(CurentRectMarker == null)
{
if(currentMarker.IsVisible)
{
currentMarker.Position = MainMap.FromLocalToLatLng(e.X, e.Y);
}
}
else // move rect marker
{
MainMap.markerAsClick = true;
PointLatLng pnew = MainMap.FromLocalToLatLng(e.X, e.Y);
. ..
......
}
MainMap.Refresh(); // force instant invalidation
}
}
protected override void OnMouseMove(MouseEventArgs e)
{
if(!markerAsClick)
{
.........
..............
}
base.OnMouseMove(e);
}
for me it's work fine
but probably you have a better place to do this