HTML5Window: unset clickCount once done.
It's meant as an extra argument to `dispatch()`, so once `dispatch()` returns, it's technically incorrect for anything to access it.
This commit is contained in:
@@ -615,6 +615,7 @@ class HTML5Window
|
||||
|
||||
parent.clickCount = event.detail;
|
||||
parent.onMouseDown.dispatch(x, y, event.button);
|
||||
parent.clickCount = 0;
|
||||
|
||||
if (parent.onMouseDown.canceled && event.cancelable)
|
||||
{
|
||||
@@ -653,6 +654,7 @@ class HTML5Window
|
||||
|
||||
parent.clickCount = event.detail;
|
||||
parent.onMouseUp.dispatch(x, y, event.button);
|
||||
parent.clickCount = 0;
|
||||
|
||||
if (parent.onMouseUp.canceled && event.cancelable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user