mirror of
https://github.com/danbulant/heaventaker
synced 2026-05-19 04:18:57 +00:00
attempt to fix pause menu
This commit is contained in:
parent
d8b2671155
commit
9bc9383429
1 changed files with 2 additions and 2 deletions
|
|
@ -93,6 +93,8 @@ class KeyHandler {
|
|||
};
|
||||
});
|
||||
|
||||
this.hammertime.get('swipe').set({ direction: Hammer.DIRECTION_ALL });
|
||||
this.hammertime.get('pinch').set({ enable: true });
|
||||
this.hammertime.on("tap", (ev) => {
|
||||
var { x, y } = ev.center;
|
||||
x -= innerWidth / 2;
|
||||
|
|
@ -124,8 +126,6 @@ class KeyHandler {
|
|||
this.hammertime.on('swipedown', (ev) => {
|
||||
this.keysWasPressed.set("down", true);
|
||||
});
|
||||
this.hammertime.get('swipe').set({ direction: Hammer.DIRECTION_ALL });
|
||||
this.hammertime.get('pinch').set({ enable: true })
|
||||
this.hammertime.on("pinchin", (ev) => {
|
||||
this.keysWasPressed.set("pause", true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue