Fix clickCount always resetting to 0

This commit is contained in:
ShaharMS
2022-09-21 12:30:04 +03:00
parent 20c96e6378
commit b18d1d60a1

View File

@@ -346,11 +346,9 @@ class NativeApplication
case MOUSE_MOVE:
window.onMouseMove.dispatch(mouseEventInfo.x, mouseEventInfo.y);
window.onMouseMoveRelative.dispatch(mouseEventInfo.movementX, mouseEventInfo.movementY);
window.clickCount = mouseEventInfo.clickCount;
case MOUSE_WHEEL:
window.onMouseWheel.dispatch(mouseEventInfo.x, mouseEventInfo.y, UNKNOWN);
window.clickCount = mouseEventInfo.clickCount;
default:
}
}