• Resolved MatN

    (@matn)


    Hi,
    there is an issue on a mobile with your plugin. I have a thumbnail gallery which after clicking opens in lightbox. Unfortunately on mobile divices when you touch a photo when scrolling a page the thumbnail opens. So it is impossible to scroll a page when you put a finger on a photo.
    I’ve managed to work it out b changing
    wp-content/plugins/photo-gallery/frontend/views/BWGViewThumbnails.php
    file.
    I deleted “touchend” in line:
    jQuery(“.bwg_lightbox_<?php echo $bwg; ?>”).on(“touchend click”, function () {

    So after the change it is:
    jQuery(“.bwg_lightbox_<?php echo $bwg; ?>”).on(“click”, function () {

    Problem is that I have to change it after each update of a plugin. Could you work it out in any next upgrade?
    Thanks a lot.

    https://wordpress.org/plugins/photo-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sona

    (@support-web-dorado)

    Dear MatN,

    Thank you for you note. In some cases with mobile devices only touchend works whereas click doesn’t in some cases, that’s the reason we use touchend. Thank you.

    Thread Starter MatN

    (@matn)

    Hi,
    thank you for your answer. I understand but I still think it should somehow fixed. Right now without editing code this plugin is not usable on some touch devices – all the time when I want to scroll the page pictures are opened in lightbox.

    Sona

    (@support-web-dorado)

    Dear MatN,

    We will include some alternative solution with our upcoming updates. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘touch on mobile opens an image’ is closed to new replies.