mirror of
https://github.com/Nathanwoodburn/hnschat-web.git
synced 2025-01-18 11:48:13 +11:00
should prevent the long press gesture from firing on mobile if you scroll
This commit is contained in:
parent
9cb4ad654c
commit
a08da434eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user