zurb-foundation6-multiselect icon indicating copy to clipboard operation
zurb-foundation6-multiselect copied to clipboard

heavy problems by scrolling long lists on mobile

Open rteinze opened this issue 5 years ago • 3 comments

It's impossible to scroll a long select list on mobile phone by touch, without selecting the touched item. I had to remove the 'touchstart' events from your code to get it running.

You can test it on your own test site by adding three items to the list. https://fasys.it/andreamariani/lab/zurb-foundation6-multiselect/docs-example/

rteinze avatar Feb 24 '20 11:02 rteinze

Hello, atm I've a lot of work to do, so I can't properly test this fix; can you please help me to figured out if this can solve that problem? I've create a new branch: https://github.com/icyz/zurb-foundation6-multiselect/blob/testing/src/zmultiselect.js

icyz avatar Mar 07 '20 18:03 icyz

hey @rteinze , did you tried that ? https://github.com/icyz/zurb-foundation6-multiselect/blob/testing/src/zmultiselect.js

icyz avatar May 13 '20 10:05 icyz

hey @rteinze , did you tried that ? https://github.com/icyz/zurb-foundation6-multiselect/blob/testing/src/zmultiselect.js

hey @icyz , not yet. At the moment the hacked copy of the script is running. There I only disabled touchevents. I did it inside the .min.js :D

...d="click";"ontouchstart"in document.documentElement/*TODO RT:prevents disfunction on touch devices:*/&&false&&(d="touchstart")...

..."touchstart"!==d&&setTimeout(function(){/*TODO RT:prevents autofocus: a(".zselect#"+c+" ul li.zmsfilter input").focus()*/},1)):f.hide...

Hope, that helps.

rteinze avatar May 13 '20 13:05 rteinze