question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Drag events not working in Android 4.4.2

See original GitHub issue

Type: <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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:25 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
harprittcommented, Apr 21, 2016

Hi all, will @MartinMa 's fix make it to the next release?

Cheers in advance

0reactions
ionitron-bot[bot]commented, Sep 5, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: Drag events not working in Android 4.4.2 #11 - GitHub
I made a quick minimal vanilla example demonstrating the general issue at MartinMa/drag_vanilla with a possible solution. It is a simple Cordova ...
Read more >
Android drag event not working on 4.4.2 with ionic
I have a list of 'cards' one on top of the other in a vertical fashion. The user can scroll to see more...
Read more >
Drag is not working [solved] - maybe important for you - ionic-v1
Hello, dragging under android 4.4+ is not working. im only getting one dragstart drag and dragend event. what could be the reason? on...
Read more >
Calendar Drag & Drop not working - OnePlus Community
On my OP8, when I'm trying to create/move events on calendar, drag & drop is not working.Fixes which work on previous OP models...
Read more >
[Tablet][EditText]Forced close when drag and drop title on ...
I came across this crash/bug in 4.4.2 while trying to use the Drag and Drop API to move an EditText around in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found