Mobile theme W.I.P.:

- Stop scrolling touch confusion from tap event
This commit is contained in:
Hadi Nategh 2016-04-05 14:16:18 +00:00
parent 4835611da4
commit 4d22204945

View File

@ -108,13 +108,19 @@ function et2_dataview_rowAOI(_node)
if (egwIsMobile()) { if (egwIsMobile()) {
$j(_node).swipe({ $j(_node).swipe({
allowPageScroll: "vertical", allowPageScroll: "vertical",
swipe: function (event, direction) longTapThreshold: 10,
swipe: function (event, direction, distance)
{ {
selectHandler(event, {swip:direction}); if (distance > 100) selectHandler(event, {swip:direction});
}, },
click: function (event) tap: function (event, duration)
{ {
selectHandler(event); selectHandler(event);
},
// stop scrolling touch being confused from tap
longTap: function (event)
{
return;
} }
}); });