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
Two finger scrolling on touch devices is missing, and two finger touches result in selection of elements. Figuring out the implementation is almost, but not quite in my grasp ;)
If the current behavior is a bug, please provide the steps to reproduce and create a JSFiddle.
What is the expected behavior?
Two fingered scrolling on touch devices should retain the current selection and allow scrolling the content area without selecting elements; essentially just pausing the selecting logic during .move() and letting the OS native two finger scroll work as usual.
I've added a trigger method which can be used to achieve that kind of functionality, in your case it'd be:
// Intercept start of selectionselection.on('beforestart',(()=>{lettimeout=null;return({oe})=>{// Check if user already tapped inside of a selection-area.if(timeout!==null){// A second pointer-event occured, ignore that one.clearTimeout(timeout);timeout=null;}else{// Wait 50ms in case the user uses two fingers to scroll.timeout=setTimeout(()=>{// OK User used only one finger, we can safely initiate a selection and reset the timer.selection.trigger(oe);timeout=null;},50);}// Never start automatically.returnfalse;};})());
Added in a10c61f, I'll publish a new release in a few days :)
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Two finger scrolling on touch devices is missing, and two finger touches result in selection of elements. Figuring out the implementation is almost, but not quite in my grasp ;)
If the current behavior is a bug, please provide the steps to reproduce and create a JSFiddle.
What is the expected behavior?
Two fingered scrolling on touch devices should retain the current selection and allow scrolling the content area without selecting elements; essentially just pausing the selecting logic during .move() and letting the OS native two finger scroll work as usual.
Your environment:
The text was updated successfully, but these errors were encountered: