bug: Drag events not working in Android 4.4.2
See original GitHub issueType: <span ionic-type>bug</span>
Platform: <span ionic-platform>android</span> <span ionic-platform-version>4.4</span> <span ionic-webview>webview</span>
<span ionic-description>This issue refers to a regression introduced with this commit from 19 Mar.
This is a new issue as desired by @perrygovier. Again (concerning above commit), what exactly do you mean by “Prevent gestures from breaking native scrolling”? Is there a use/test case? I could’t find a related issue.
Here is a codepen that demonstrates the issue (try to drag the red box): http://codepen.io/MartinMa/pen/vOEmVR
Please confirm.
To get it up and running on your Android device, run the following commands using Ionic CLI.
ionic start dragtest http://codepen.io/MartinMa/pen/vOEmVR
cd dragtest
ionic platform add android
ionic run android
As already mentioned by @gregor-srdic, this issue also affects built-in events like on-hold
. (see issue 1729)
There is a work around. You have to pass {prevent_default_directions = ['left', 'up', 'right', 'down']}
as fourth argument to $ionicGesture.on
.
I think preventDefault();
should be the default, if 'overflow-scroll'
isn’t present? With the current behavior it breaks drag gestures when using Ionic scroll - which is the default. So it’s broken by default 😉</span>
<span is-issue-template></span>
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:25 (9 by maintainers)
Hi all, will @MartinMa 's fix make it to the next release?
Cheers in advance
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.