mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Side menu threshold fix
This commit is contained in:
@ -247,7 +247,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate difference from the tap points
|
// Calculate difference from the tap points
|
||||||
if(Math.abs(this._lastX - this._startX) > this.dragThresholdX) {
|
if(!this._isDragging && Math.abs(this._lastX - this._startX) > this.dragThresholdX) {
|
||||||
// if the difference is greater than threshold, start dragging using the current
|
// if the difference is greater than threshold, start dragging using the current
|
||||||
// point as the starting point
|
// point as the starting point
|
||||||
this._startX = this._lastX
|
this._startX = this._lastX
|
||||||
|
|||||||
Reference in New Issue
Block a user