You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
After dragging (on mouseup) an item within ion-reorder-group the item gets clicked. This only occurs on non-touch devices and having the mouse pointer outside the ion-reorder element. With touch simulation enabled this behavior does not occur.
Touch simulation enabled:
Touch simulation disabled (e.g. web browser on PC):
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. The browser handles when click events are dispatched, not Ionic. The reported behavior aligns with what happens outside of Ionic too (and it is also consistent across Chrome, Firefox, and Safari): https://codepen.io/liamdebeasi/pen/dyrzdQe
In this demo, click and drag from "Start here" over to "Drag over here and release". Once you release your mouse, the checkbox should be checked.
Mobile devices have different criteria for when click events are dispatched to account for accidental touches which may contribute to this behavior not happening on a physical mobile device.
While this is the correct browser behavior, you may be able to work around this by disabling the checkbox on pointer down and then re-enabling it on pointer up:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
After dragging (on mouseup) an item within
ion-reorder-group
the item gets clicked. This only occurs on non-touch devices and having the mouse pointer outside theion-reorder
element. With touch simulation enabled this behavior does not occur.Touch simulation enabled:
Touch simulation disabled (e.g. web browser on PC):
Expected Behavior
The item must not be clicked.
Steps to Reproduce
Code Reproduction URL
https://github.com/loopezz/ion-reorder.git
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: