From 26918f3970c18a149865d3dfc4aabf9601aec804 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 27 Mar 2022 19:54:50 -0600 Subject: [PATCH] Fix long-press on multi list --- www/assets/js/track.js | 4 +++- www/pages/track.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/assets/js/track.js b/www/assets/js/track.js index 76773d7..32a91cd 100644 --- a/www/assets/js/track.js +++ b/www/assets/js/track.js @@ -279,7 +279,9 @@ $("#app").on("contextmenu taphold", ".tracking-code-history-link", function (evt return false; }); -$("#app").on("contextmenu", ".tracking-code-multi-link", function (evt) { +$("#app").on("contextmenu taphold", ".tracking-code-multi-link", function (evt) { + evt.preventDefault(); + var code = $(this).data("trackingcode"); var action = app.actions.create({ diff --git a/www/pages/track.html b/www/pages/track.html index e27d5f4..2ae890c 100644 --- a/www/pages/track.html +++ b/www/pages/track.html @@ -80,7 +80,7 @@
-
+