radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
912 stars 407 forks source link

Toggling IsHitTestVisible while m.IsMouseOver does not fire OnMarkerLeave event #61

Open deanljohnson opened 7 years ago

deanljohnson commented 7 years ago

If the mouse is currently over a marker and then IsHitTestVisible is set to false on that marker, the OnMarkerLeave event is never fired and marker.IsMouseOver stays true. Additionally, this permanently locks the cursor to be a hand. Expected behavior is that when IsHitTestVisible is switched to false, the OnMarkerLeave event will be fired if IsMouseOver was previously set to true.