• Resolved littauer

    (@littauer)


    I’m trying to have two independent posaic galleries on a single post. The problem I’m having is that the arrow keys move both mosaics at once. Is there a workaround for this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jan Zeman

    (@janzeman)

    Hi @littauer, this will require coding. I am on vacation without any computer at the moment. I will return to you in 2 weeks. Apologies for the delay, BR, Jan

    Thread Starter littauer

    (@littauer)

    Thanks for the reply. Take it easy on your vacation!

    Thread Starter littauer

    (@littauer)

    Should it be of help, I had Claude (AI) write a snippet to handle the keystrokes. I can send it to you if you’d like. Here’s the header comment on its PHP snippet:

    // On pages with multiple jzsa galleries, arrow keys move ALL galleries at once.
    // This snippet disables Swiper’s built-in keyboard navigation and replaces it
    // with hover-aware control: arrow keys only affect the gallery the mouse is over.
    // Lightbox: has its own Swiper — just step aside (overlayOpen flag).
    // Fullscreen: reuses the same Swiper — must re-enable keyboard, then disable on exit.

    • This reply was modified 1 week, 4 days ago by littauer.
    Plugin Author Jan Zeman

    (@janzeman)

    Hi @littauer ,

    I am back. And yes, please send it over. In case you know how feel free to open PR on the GitHub directly: https://github.com/JanZeman/shared-albums-for-google-photos

    Kind regards, Jan

    Plugin Author Jan Zeman

    (@janzeman)

    Hi @littauer,

    No need to send anything, I just applied the fix. When multiple galleries are displayed on one page, the arrow keys now control only the gallery being hovered or keyboard-focused. An open Lightbox or Fullscreen viewer receives exclusive keyboard control.

    The fix will be included in the next plugin update (version 2.4.5), which will be published soon. After updating, please refresh the page and verify the behavior.

    Have a nice day
    Jan

    Thread Starter littauer

    (@littauer)

    Thanks! I’ll watch for the update.

    Plugin Author Jan Zeman

    (@janzeman)

    Cool! I just pressed the release button. WP applies some 6 hours window, so tomorrow you can check it. Cheers, Jan

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.