zurb-foundation6-multiselect
zurb-foundation6-multiselect copied to clipboard
heavy problems by scrolling long lists on mobile
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/
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
hey @rteinze , did you tried that ? https://github.com/icyz/zurb-foundation6-multiselect/blob/testing/src/zmultiselect.js
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.