roipeker / graphx

GraphX package for Flutter.
https://pub.dev/packages/graphx
MIT License
491 stars 49 forks source link

Add stage mouseEnableStillEvents flag to disable emitting still mouse… #45

Closed tlvenn closed 2 years ago

tlvenn commented 2 years ago

… events

By setting this flag to false, the system will stop emitting fake still mouse events used to detect mouseOver mouseOut when the mouse is not moving but objects on the scene are moving or appearing / disappearing.

This is an optimization to allow the user to opt out of this feature if there is no need for it.

This is a pretty safe change, the only place where we actually emit MouseInputType.still events is in _detectMouseMove() so once we turn this off, we effectively disable this feature.

Closes: #44