From a64efa4d1fc0205a072dd10f10d7add23ddab8fc Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 20 Jun 2024 22:11:05 +0200 Subject: [PATCH] [] skyspy: fix button handling. --- apps/skyspy/skyspy.app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/skyspy/skyspy.app.js b/apps/skyspy/skyspy.app.js index 5dec5f148..fd651a6fc 100644 --- a/apps/skyspy/skyspy.app.js +++ b/apps/skyspy/skyspy.app.js @@ -320,9 +320,16 @@ function onSwipe(dir) { nextScreen(); } +var last_b = 0; function touchHandler(d) { let x = Math.floor(d.x); let y = Math.floor(d.y); + + if (d.b != 1 || last_b != 0) { + last_b = d.b; + return; + } + last_b = d.b; if ((x