mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Make sure the path is available when checking for scrolling touch
This commit is contained in:
parent
7343283e12
commit
0d68f87ae3
@ -125,6 +125,8 @@ export class tapAndSwipe {
|
|||||||
this._isTapAndHold = false;
|
this._isTapAndHold = false;
|
||||||
this._fingercount = event.touches.length;
|
this._fingercount = event.touches.length;
|
||||||
|
|
||||||
|
if(event.path)
|
||||||
|
{
|
||||||
const scrolledItem = event.path.filter(_item => {
|
const scrolledItem = event.path.filter(_item => {
|
||||||
return _item instanceof HTMLElement && this.element.contains(_item) && (_item.scrollTop != 0 || _item.scrollLeft !=0);
|
return _item instanceof HTMLElement && this.element.contains(_item) && (_item.scrollTop != 0 || _item.scrollLeft !=0);
|
||||||
});
|
});
|
||||||
@ -136,6 +138,8 @@ export class tapAndSwipe {
|
|||||||
{
|
{
|
||||||
this._scrolledElementObj = null;
|
this._scrolledElementObj = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this._tapHoldTimeout = window.setTimeout(_=>{
|
this._tapHoldTimeout = window.setTimeout(_=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user