laneya2

cave exploration game
git clone https://git.ce9e.org/laneya2.git

commit
72467473f3a9f8bdda08369c3682faea1feb7c56
parent
d83049aca58d9df1e3aeb11638ff1b3e9d48fb69
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-10-10 20:49
try: fix double-tap on iOS

Diffstat

M static/dpad.js 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/static/dpad.js b/static/dpad.js

@@ -48,4 +48,7 @@ export default function(el, handler) {
   48    48 
   49    49     el.addEventListener('pointerup', pointerup);
   50    50     el.addEventListener('pointercancel', pointerup);
   -1    51 
   -1    52     // prevent zoom-on-double-tap in iOS
   -1    53     el.addEventListener('click', e => e.preventDefault())
   51    54 }