mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +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()) {
|
||||
$j(_node).swipe({
|
||||
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);
|
||||
},
|
||||
// stop scrolling touch being confused from tap
|
||||
longTap: function (event)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user