Add allowScrolling for action popup and do not popup context menu when more than one touch is used

This commit is contained in:
Hadi Nategh 2022-05-30 16:07:26 +02:00
parent 73e6cf2570
commit 017901a317

View File

@ -291,8 +291,10 @@ export function egwPopupActionImplementation()
let tap = new tapAndSwipe(_node, { let tap = new tapAndSwipe(_node, {
// this threshold must be the same as the one set in et2_dataview_view_aoi // this threshold must be the same as the one set in et2_dataview_view_aoi
tapHoldThreshold: 600, tapHoldThreshold: 600,
tapAndHold: function(event) allowScrolling: "both",
tapAndHold: function(event, fingercount)
{ {
if (fingercount >= 2) return;
// don't trigger contextmenu if sorting is happening // don't trigger contextmenu if sorting is happening
if (document.querySelector('.sortable-drag')) return; if (document.querySelector('.sortable-drag')) return;