Fix long-press on iOS and mobile browsers, hopefully

This commit is contained in:
Skylar Ittner 2022-03-27 19:31:37 -06:00
parent e19c28e5e8
commit ed66b6aa52
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,9 @@ var app = new Framework7({
popover: {
backdrop: true
},
touch: {
tapHold: true
},
init: false,
initOnDeviceReady: false,
routes: routes

View File

@ -236,7 +236,9 @@ function trackOpenAsync( {to, resolve, reject}) {
}, "GET");
}
$("#app").on("contextmenu", ".tracking-code-history-link", function (evt) {
$("#app").on("contextmenu taphold", ".tracking-code-history-link", function (evt) {
evt.preventDefault();
var code = $(this).data("trackingcode");
var action = app.actions.create({