imagelightbox icon indicating copy to clipboard operation
imagelightbox copied to clipboard

Add swipe/slide/zoom functionality

Open rejas opened this issue 8 years ago • 5 comments

From "paxperscientiam": On the UX side of things, the ability to slide over to the next image via trackpad or mobile screen, would be great. To this end, I think we want a sliding motion to be equivalent to pressing left/right buttons, correct?"

Correct :-)

rejas avatar Jul 21 '16 15:07 rejas

@rejas Just for the record, there is no interest in adding dependencies, correct?

paxperscientiam avatar Oct 27 '16 01:10 paxperscientiam

No, only if it was very very small. For exmaple issue #47 would be really easy to fix if I would use hammer.js but then the size of the library doubles....

rejas avatar Oct 27 '16 09:10 rejas

@rejas just to update, mobile finger sliding works just fine. It's only trackpad that does not.

paxperscientiam avatar Dec 13 '16 16:12 paxperscientiam

Trackpads? Well, for those that want to add support for that, they could use their own library for detecting that an call a function for next / prev on our library. what do you think?

rejas avatar Dec 13 '16 23:12 rejas

@rejas just to update, mobile finger sliding works just fine. It's only trackpad that does not.

For me zooming doesn't work on Pixel XL with Android 9 and Chrome 86.0.4240.198

Do you have to configure it the right way to work? Or did you mean sliding next/prev and not zooming?

denalena avatar Nov 16 '20 19:11 denalena