From a08da434eb3d0cd6dde68095ac27238ab471b652 Mon Sep 17 00:00:00 2001 From: hshub Date: Tue, 16 Apr 2024 23:40:35 +0000 Subject: [PATCH] should prevent the long press gesture from firing on mobile if you scroll --- assets/js/listeners.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/listeners.js b/assets/js/listeners.js index c091ef6..9d5fdd6 100755 --- a/assets/js/listeners.js +++ b/assets/js/listeners.js @@ -89,6 +89,9 @@ export class listeners { }); $("#messageHolder").on("scroll", e => { + this.longPress = 0; + clearTimeout(this.longPressTimer); + let messageHolder = $(e.target); if (app.loadingMessages) { return;