mirror of
https://github.com/Nathanwoodburn/hnschat-web.git
synced 2025-12-06 08:42:59 +11:00
should prevent the long press gesture from firing on mobile if you scroll
This commit is contained in:
@@ -89,6 +89,9 @@ export class listeners {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#messageHolder").on("scroll", e => {
|
$("#messageHolder").on("scroll", e => {
|
||||||
|
this.longPress = 0;
|
||||||
|
clearTimeout(this.longPressTimer);
|
||||||
|
|
||||||
let messageHolder = $(e.target);
|
let messageHolder = $(e.target);
|
||||||
if (app.loadingMessages) {
|
if (app.loadingMessages) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user