• Resolved sartech

    (@sartech)


    I have a problem: with the “space gallery” theme when I put the video in full screen and then exit from full screen, I am catapulted to the top of the “scroll on top” page. How can I resolve this annoying behavior?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello, dear sartech.

    Thank you for contacting us. Our team is always ready to help you.

    I want to mention, that we need more information for further investigation of this case.
    So, please provide us with the following info:

    Please, send us a link, where the given TS Video Gallery is located.

    Customer satisfaction is our priority and we do our best to make your experience even better.

    Enjoy the plugin, but in the meantime, feel free to open a new thread if you have more questions.

    Thank You very much.

    Thread Starter sartech

    (@sartech)

    here is the link to the galleries with TS: https://www.videoage.it/portfolio-item/works-1/

    Plugin Author totalsoft

    (@totalsoft)

    Hello, dear sartech.

    Thank you for contacting us and reporting your problem.

    Edit our public\theme_partials\tsvg-thumbnails-video-gallery.php. Add code in line 655.

    let tsvgScrollY<?php echo esc_attr( $tsvg_shortcode_id ); ?> = 0;
    function onFullScreenChange<?php echo esc_attr( $tsvg_shortcode_id ); ?>() {
    let inFullScreen<?php echo esc_attr( $tsvg_shortcode_id ); ?> = Boolean(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement);
    if (!inFullScreen<?php echo esc_attr( $tsvg_shortcode_id ); ?>) {
    window.scrollTo(0, tsvgScrollY<?php echo esc_attr( $tsvg_shortcode_id ); ?>);
    }
    }
    document.addEventListener('fullscreenchange', onFullScreenChange<?php echo esc_attr( $tsvg_shortcode_id ); ?>)
    document.addEventListener('mozfullscreenchange', onFullScreenChange<?php echo esc_attr( $tsvg_shortcode_id ); ?>)
    document.addEventListener('msfullscreenchange', onFullScreenChange<?php echo esc_attr( $tsvg_shortcode_id ); ?>)
    document.addEventListener('webkitfullscreenchange', onFullScreenChange<?php echo esc_attr( $tsvg_shortcode_id ); ?>)
    window.addEventListener("scroll", () => {
    if (window.scrollY === 0) {
    window.scrollTo(0, tsvgScrollY<?php echo esc_attr( $tsvg_shortcode_id ); ?>);
    return;
    }
    tsvgScrollY<?php echo esc_attr( $tsvg_shortcode_id ); ?> = window.scrollY;
    });

    • This reply was modified 5 months ago by totalsoft.
    Plugin Author totalsoft

    (@totalsoft)

    We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.

    Have a good day!

    Thread Starter sartech

    (@sartech)

    Thanks for the reply. Unfortunately the file you told me to edit only contains 498 lines.

    Plugin Author totalsoft

    (@totalsoft)

    Sorry for this inconvenience , just need add this code in public\popup_partials\tsvg-sg-video-gallery_popup.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.