Describe the bug
The onDrag call back fires on desktop with all mousemove events because it's called before the check for this.mouseDown = true in touchMove (in event.ts). Additionally, because the this.mouseDown = true check is further down in the touchMove handler (after events are pushed on to the steps array) , sometimes on desktop the panel moves without dragging.
To Reproduce
Steps to reproduce the behavior:
Create a panel with 3 breakpoints and some <input></input> or <IonInput></IonInput> fields.
Set fastSwipeSensivity to 1 and fastSwipeClose to false (ie, turn off fast swipe close).
Attach an onDrag callback that logs when called.
Move to the middle breakpoint.
On desktop/web, click to focus between input fields at a reasonably quick pace.
Notice the onDrag is called when the mouse moves.
If you click between input fields enough times, you'll notice the panel moves to another breakpoint.
Expected behavioronDrag should only fire when dragging with a touch input or click dragging with a mouse pointer.
Desktop (please complete the following information):
OS: desktop (I'm on a Mac)
Browser chrome
Smartphone (please complete the following information):
Describe the bug The
onDrag
call back fires on desktop with allmousemove
events because it's called before the check forthis.mouseDown = true
intouchMove
(in event.ts). Additionally, because thethis.mouseDown = true
check is further down in thetouchMove
handler (after events are pushed on to the steps array) , sometimes on desktop the panel moves without dragging.To Reproduce Steps to reproduce the behavior:
<input></input>
or<IonInput></IonInput>
fields.fastSwipeSensivity
to 1 andfastSwipeClose
to false (ie, turn off fast swipe close).onDrag
callback that logs when called.onDrag
is called when the mouse moves.Expected behavior
onDrag
should only fire when dragging with a touch input or click dragging with a mouse pointer.Desktop (please complete the following information):
Smartphone (please complete the following information):