diff options
author | Allan Wang <me@allanwang.ca> | 2020-11-07 20:19:22 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-11-07 20:19:22 -0800 |
commit | f35a33b5c49c4dc768c1be8ddf3393f79acaa57f (patch) | |
tree | a7c55efe958144ef9a3a064132e4a16e38714e5d /app/src/web/ts/context_a.ts | |
parent | 8cac4ce54358f23a30a762bbb960309914507bb8 (diff) | |
download | frost-f35a33b5c49c4dc768c1be8ddf3393f79acaa57f.tar.gz frost-f35a33b5c49c4dc768c1be8ddf3393f79acaa57f.tar.bz2 frost-f35a33b5c49c4dc768c1be8ddf3393f79acaa57f.zip |
Disable context menu shortly after scrolling
Diffstat (limited to 'app/src/web/ts/context_a.ts')
-rw-r--r-- | app/src/web/ts/context_a.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |