[bug] MultiDrag: Avoid selecting an item when scrolling with a touch device
See original GitHub issueWhen you finish scrolling a list with a touch device and multiDrag is enabled, the element I clicked on to start scrolling is selected. I would like the element not to be selected.
To reproduce it I create a simle sortable list
Sortable.create(list, {
group: 'shared',
multiDrag: true,
selectedClass: "selected",
animation: 150,
delay: 500,
delayOnTouchOnly: true,
disabled: false
});
<div id="list" class="list-group">
<div class="list-group-item">Item 1</div>
<div class="list-group-item">Item 2</div>
<div class="list-group-item">Item 3</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
<div class="list-group-item">Item 4</div>
<div class="list-group-item">Item 5</div>
</div>
and try scrolling the list with a touch device.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
85677 – Dragging on a touchscreen display highlights instead ...
The only way to scroll through an open document is the little scroll bar on the right of the document's window, however this...
Read more >[BUG] Stop scrolling from interfering with dragging #185 - GitHub
I have a motion component that I want to drag on "x" for animations, but it takes enough of the screen on mobile...
Read more >Prevent selection while scrolling listbox - Stack Overflow
The problem I'm having with my ListBox is while I'm flick scrolling, it selects items. Normally touch devices do not select a ListBox...
Read more >[touchscreen, X11 & Wayland] Dragging the titlebar breaks ...
Open Firefox; Scroll/zoom on a page (with touchscreen); Ensure that the window manager's titlebar is hidden ( Customize Toolbar > Uncheck 'Title Bar'...
Read more >How to prevent overflow scrolling in CSS - LogRocket Blog
Have you ever seen a horizontal scroll bar on your screen because your web content did not fit? Have you opened a modal...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is a big issue that needs resolving. MultiDrag sortables on touch devices should require one or more items to be explicitly selected (tapped) before dragging, otherwise it makes scrolling impossible.
@owen-m1, sorry, maybe I didn’t make myself clear.
My problem is that I can’t select an item and then scroll through the list and select another item that was not previously visible in the view. I cannot do this because the element that I touched to start scrolling becomes selected when I take my finger off the screen (end scrolling).
This happens, both when I use
fallbackToleranceand when I usedelay.