You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the handler set using onMouseDoubleClick is always called when a GShape object is clicked on twice using a mouse even if the time between clicks is several seconds. The cause is due to the value of MouseInputData.time being in seconds while the value of MouseInputData.doubleClickTime is in milliseconds. The comparison at line 949 in display_object.dart ends up using an interval of 250 seconds as a result and always succeeds.
Changing line 9 in pointer_data.dart so that the value of doubleClickTime is in seconds fixed the issue for me:
static double doubleClickTime = 0.250;
The text was updated successfully, but these errors were encountered:
I found that the handler set using
onMouseDoubleClick
is always called when aGShape
object is clicked on twice using a mouse even if the time between clicks is several seconds. The cause is due to the value ofMouseInputData.time
being in seconds while the value ofMouseInputData.doubleClickTime
is in milliseconds. The comparison at line 949 in display_object.dart ends up using an interval of 250 seconds as a result and always succeeds.Changing line 9 in pointer_data.dart so that the value of
doubleClickTime
is in seconds fixed the issue for me:The text was updated successfully, but these errors were encountered: