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

Slide opens when zooming / pinching on phone #276

Open
Bobeta opened this issue Sep 14, 2018 · 4 comments
Open

Slide opens when zooming / pinching on phone #276

Bobeta opened this issue Sep 14, 2018 · 4 comments

Comments

@Bobeta
Copy link

Bobeta commented Sep 14, 2018

Hey & thanks for this great library!

When zooming in on something on a phone (like an image), the slide opens automatically on our site ( www.Saburly.com ) which destroys the UX. Are you experiencing the same issue & any ideas on how to solve it?

@alecrae
Copy link

alecrae commented Nov 28, 2018

I'm running into this too, did you find a solution @Bobeta?

@kerembeyazit
Copy link

Try this meta tag; <meta name="viewport" content="width=device-width, user-scalable=no" />

@Tarek-Adra
Copy link

+1

@Tarek-Adra
Copy link

found this and works greate :

panel.addEventListener('touchstart', function(eve) {
     let offset = eve.touches[0].pageX;

     if (slideout._orientation !== 1) {
         offset = window.innerWidth - offset;
     }

     slideout._preventOpen = slideout._preventOpen || (offset > slideout._tolerance && !slideout.isOpen());
 });

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

4 participants