Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll impossible if touching slider container (IE11) #1326

Open
azygis opened this issue Apr 27, 2015 · 0 comments
Open

Scroll impossible if touching slider container (IE11) #1326

azygis opened this issue Apr 27, 2015 · 0 comments

Comments

@azygis
Copy link

azygis commented Apr 27, 2015

Hello.

We've had an issue with touch scrolling in IE11. At first we thought that it was related to windows phone, but after digging it a little deeper it became clear that it was IE who misbehaved slightly.

Problem: you can't scroll page vertically when slide direction is set to horizontal (not sure if the same applies vice versa, but it should). To test that, open IE, go to the page (I think every page which has flexslider applies) and try to "drag'n'drop" the slides vertically. No matter how hard you try to be 'much-vertical-mouse-moving-guy', you will see that the slide changes even though I'm trying to do a vertical movement.

Even better if you have access to windows phone with IE11 (10 still fits? dunno). Just try to scroll and you'll see that slides change and you won't get anywhere.

Currently, if browser is IE (at least if it has MS touch capabilities), plugin is setting:

el.style.msTouchAction = "none";

I've made a change locally to:

el.style.msTouchAction = (vertical) ? "pan-x" : "pan-y";

Not sure if it's applicable for everyone, but now I can scroll normally.

If using minified version, find the place with

e.style.msTouchAction="none";

and replace it with

e.style.msTouchAction=w?"pan-x":"pan-y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant