JSJ Gallery Slideshow
[resolved] Slideshow reloads when browser resizes (3 posts)

  1. chichimsphoebe
    Posted 2 years ago #

    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.



  2. Jorge Silva-Jetter
    Plugin Author

    Posted 2 years ago #

    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


    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!


  3. chichimsphoebe
    Posted 2 years ago #

    Hello Jorge!

    Thanks for your quick response, it worked perfectly!

    Thanks so much!~


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSJ Gallery Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.