1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

move KeyMouse listeners to correct location

This commit is contained in:
Dimava
2020-06-01 02:36:41 +03:00
parent fe33f51424
commit 0d342ee417
2 changed files with 9 additions and 6 deletions

View File

@@ -443,7 +443,6 @@ export class Camera extends BasicSerializableObject {
} else if (event.button === 2) {
this.downPreHandler.dispatch(new Vector(event.clientX, event.clientY), enumMouseButton.right);
}
this.root.app.inputMgr.handleKeydown(event);
return false;
}
@@ -485,7 +484,6 @@ export class Camera extends BasicSerializableObject {
if (!this.checkPreventDoubleMouse()) {
return;
}
this.root.app.inputMgr.handleKeyup(event);
this.combinedSingleTouchStopHandler(event.clientX, event.clientY);
return false;