From f35a33b5c49c4dc768c1be8ddf3393f79acaa57f Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 7 Nov 2020 20:19:22 -0800 Subject: Disable context menu shortly after scrolling --- app/src/web/ts/context_a.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/src/web/ts/context_a.ts') diff --git a/app/src/web/ts/context_a.ts b/app/src/web/ts/context_a.ts index 9faa1e94..ad81279e 100644 --- a/app/src/web/ts/context_a.ts +++ b/app/src/web/ts/context_a.ts @@ -110,6 +110,14 @@ Frost.longClick(true); longClick = true; + /** + * Don't handle context events while scrolling + */ + if (Frost.isScrolling()) { + console.log("Skip from scrolling"); + return; + } + /* * Commonality; check for valid target */ -- cgit v1.2.3