mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Mobile theme W.I.P.:
- Stop scrolling touch confusion from tap event
This commit is contained in:
parent
4835611da4
commit
4d22204945
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user