Init mouse scratch[X|Y] to 0

When autoplay is enabled, the runtime can start before a mouse event is fired
This commit is contained in:
Thomas Weber committed 2021-07-22 10:49:34 -05:00
1 parent f79f1a07d9
commit e79b7ecfd1
1 file changed
+2
+2
View File
@@ -4,6 +4,8 @@ class Mouse {
constructor (runtime) {
this._clientX = 0;
this._clientY = 0;
this._scratchX = 0;
this._scratchY = 0;
this._buttons = new Set();
this.usesRightClickDown = false;
this._isDown = false;