Feature request for mobile
-
When using a featured image as a placeholder for the video, and on a desktop, the hover triggers the play icon – which is great.
However, on mobile there is no touchevent to trigger the same hover.
I’ve temporarily overcome this by add the playicon.png with an ::after on the .fvp-dynamic element, but I think it would be great to just add a hover class and trigger with touch.
$('.fvp-dynamic').on("touchstart", function (e) { 'use strict'; //satisfy code inspectors var link = $(this); //preselect the link if (link.hasClass('hover')) { return true; } else { link.addClass('hover'); $('figure').not(this).removeClass('hover'); e.preventDefault(); return false; //extra, and to make sure the function has consistent return points } });
then just give the .hover class the same rules the the .fvp-loader div gets.
make sense?
- The topic ‘Feature request for mobile’ is closed to new replies.