WordPress.org

Forums

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

  1. chichimsphoebe
    Member
    Posted 1 year 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.

    Thanks!

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

  2. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year 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

    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.

  3. chichimsphoebe
    Member
    Posted 1 year ago #

    Hello Jorge!

    Thanks for your quick response, it worked perfectly!

    Thanks so much!~

    phoebe

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

Tags

No tags yet.