dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.49k forks source link

Swipe on mobile #378

Open softshape opened 10 years ago

softshape commented 10 years ago

Hi,

on Android / iPhone browser swipe gesture should change pages in galleries (i.e. work as prev / next buttons). It's most natural way on touch devices, but currently it's not supported.

mjcampagna commented 10 years ago

That's an opinion. Frankly, I think tappin takes less effort and is easier than swiping. But whatever. Go read the smashing magazine article.

Matthew Campagna The Turning Gate | http://theturninggate.net Photographers Plugins and Resources

softshape commented 10 years ago

Tapping is not an option when a gallery page contains clickable elements (textarea + button to comment the picture, for example). And swipe is not "an opinion" :), it's an common standard for smartphone galleries.

MojoDK commented 10 years ago

+1 ... swipe - since it's default on Android, iOS and Win8.

zeixit commented 10 years ago

+1 for Swipe here too

dimsemenov commented 10 years ago

This script will never have swipe gesture support, as it's not possible to add swipe, without disabling native zoom & pan of browser (which is a whole point of lightbox). I'm working on similar script that will be able to do programmatic zoom & pan, which will emulate default one, but it's made purely for images, follow https://twitter.com/photoswipe if you're interested.

upd.: released http://photoswipe.com

Shipwreck commented 10 years ago

Thanks Dmitry looking into photoswipe

landwire commented 9 years ago

HI there,

I'm a bit confused.

In the SM article you have written this: "But if you really need swiping, there are some ways to implement it: If you don’t need a dragging effect, use something like the TouchSwipe plugin."

So can Magnific Popup support swipe with touch swipe plugin? If yes, how do you set it up? Would be great to see a demo or something. Thanks, Sascha

bogdaniel commented 9 years ago

swipe .. would be a really nice feature in this plugin even if you would need to make some changes .. and disable features if swipe would be activated. i'll try and implement swipe option .. and see if i can get it right :dart:

carasmo commented 9 years ago

Did it here: https://github.com/dimsemenov/Magnific-Popup/issues/646#issuecomment-113270166

garygreen commented 8 years ago

@dimsemenov there's a lot of similaries between Magnific Popup and Photoswipe... imo creating two seperate plugins has just fragmented the community a bit. Of course it was a personal choice to create a new library, but now I have to include both Magnific Popup and Photoswipe just so I get the best of both worlds.

I would have preferred to see an optional plugin for Magnific that adds mobile swiping capabilities personally, but meh.

EnigmaSolved commented 8 years ago

@garygreen, if I remember correctly, Photoswipe was originally developed by someone else, entirely separately from Magnific, and then at some point @dimsemenov inherited Photoswipe and has further developed it. In other words, I believe they have always been separate. It's just that now they are both overseen by the same developer.