Skip to content

Android and delay option #1469

Closed
Closed

Description

@KingRial

Problem:

I am testing the library with both iOS and Android.
On iOS seems perfect; however on Android, when using the library with the "delay" option, it's very difficult to use.

There are two specific situations:

  • Try just to touch to start the sortable; with delay set I neraly always fail to start the sortable; without the delay options is perfect (could it be related to Chrome Android delay and mousemove events #981 ?)
  • If you use an high delay (for example 500) after some simple repeated scrolls, you need to wait 2x delay to see the sortable work (it's like if when scrolling the delay launched from the touchstart triggered by the scroll is not cancelled)

Chrome: 72.0.3626.121
Android 8.1.0

JSBin/JSFiddle demonstrating the problem:

https://jsbin.com/nolazet

Activity

  1. changed the title [-]Android e Delay options[/-] [+]Android and delay options[/+] on Mar 13, 2019
  2. changed the title [-]Android and delay options[/-] [+]Android and delay option[/+] on Mar 13, 2019
  3. kimemin commented on Apr 3, 2019

    @kimemin

    Delay option in Android is not working again!!
    I want to need help, too.

  4. owen-m1 commented on Apr 3, 2019

    @owen-m1
    Member

    @kimemin Was there a version in which it did work?

  5. kimemin commented on Apr 4, 2019

    @kimemin

    @owen-m1 I found well-working version, but old one.
    I used https://github.com/SortableJS/Sortable/tree/584f5e52d0ca13fc03b9a4325521352c304c4647.
    this version works on both Android and iOS.

  6. clemishow commented on Apr 19, 2019

    @clemishow

    "Try just to touch to start the sortable; with delay set I neraly always fail to start the sortable; without the delay options is perfect (could it be related to #981 ?)" Exactly got the same problem in 1.8.4 with this options :

    const sortableOptions = {
        forceFallback: true,
        fallbackOnBody: true,
        animation: 150,
        delay: 100,
        filter: '.static',
        ghostClass: 'ghost',
        fallbackClass: 'chosen',
        chosenClass: 'chosen',
        scrollSpeed: 20,
      };

    But now IOS Safari delay not working with #584f5e52d0ca13fc03b9a4325521352c304c4647

  7. added a commit that references this issue on Apr 19, 2019
  8. owen-m1 commented on Apr 19, 2019

    @owen-m1
    Member

    @KingRial @kimemin @clemishow Please try master branch, and let me know if it solved the problem on your end.

  9. clemishow commented on Apr 23, 2019

    @clemishow

    Working for me, thank you very much for your reactivity 👏

  10. cornucopib commented on May 25, 2019

    @cornucopib

    @owen-m1 I found well-working version, but old one.
    I used https://github.com/SortableJS/Sortable/tree/584f5e52d0ca13fc03b9a4325521352c304c4647.
    this version works on both Android and iOS.

    very good!!!

  11. added a commit that references this issue on Jun 11, 2019
  12. added a commit that references this issue on Nov 18, 2019
  13. AndyMachinCG commented on Feb 18, 2023

    @AndyMachinCG

    I was able to fix this issue by setting the draggable option. draggable: ".item"

  14. added a commit that references this issue on Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions