Bug with pswp__ui--idle when mouseUsed: true #1270

mjau-mjau opened this Issue Jan 10, 2017 · 0 comments


None yet

1 participant


I came across a small bug when trying to figure out why pswp__ui--idle was not triggering consistently. Turns out it it does not trigger if options.mouseUsed = true has been force-fed from the options upfront.

See example below. I just added mouseUsed: true, so make sure to test it from a mouse device. As you will see, the interface never hides.

Obviously, the simple solution is to not use this option at all, and just let Photoswipe detect mouseUsed. Just wanted to report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment