WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Slideshow reloads when browser resizes

[Resolved] Slideshow reloads when browser resizes

  • chichimsphoebe
    Member

    @chichimsphoebe

    Hello there,

    Awesome plugin!
    The slideshow always reloads back to the first image when I resize the browser, is there a way to fix this issue? It is a little frustrating when it happens on the desktop and on mobile, if I or my client scrolls through halfway then it jumps back to the first image when the browser resizes or the phone is turned from portrait to landscape.

    Thanks!

    https://wordpress.org/plugins/jsj-gallery-slideshow/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jorge Silva-Jetter
    Member

    @jorgesilva-1

    This is not a bug. This is coded this way by design and I don’t think the plugin itself will change. This is important because when window size changes a lot of thing need to be recalculated based on window width and height.

    If you want to disable it in your copy of the plugin just comment lines 54-56 of js/app/main.js

    https://github.com/thejsj/jsj-gallery-slideshow/blob/master/js/app/main.js#L54-L56

    Keep in mind that you have to either recompile the javascript or comment it in the minified version.

    Go to jsj-gallery-slideshow.js and comment this:

    …..(jQuery(window).resize(function(){ /* START COMMENT!!!! createJSJGallerySlideshow() END COMMENT */ }),jQue…..

    Let me know if that works!

    J.

    chichimsphoebe
    Member

    @chichimsphoebe

    Hello Jorge!

    Thanks for your quick response, it worked perfectly!

    Thanks so much!~

    phoebe

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Slideshow reloads when browser resizes’ is closed to new replies.