nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
626 stars 312 forks source link

Flip Back on Touch Devices #100

Open felixdorner opened 8 years ago

felixdorner commented 8 years ago

Hey, I have an issue with implementing the plugin for touch devices. I get it working. The box flips on touch, but I want to turn it back around when touching a second time on the box. At the moment the box only flips back when I touch another box. Is this possible with your script?

luke-nehemedia commented 7 years ago

I had the same problem.

This solution worked for me:

$('.flip').each(function(){ $(this).on('touchstart', function(){ $(this).flip('toggle'); }); });

Hope this helps.

By the way: It would be fine if touch-support would be implemented as default.