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:
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user