knomepasi/WordPress-plugins — Issue #8: Sometimes the slideshow advances too fast and too many times
Author: knomepasi
Created: 2012-02-03 17:54:45+00:00
State: open
Labels: Photoslider

This happens at least in Firefox, when you open a browser tab with Photoslider, then look away for a while, and get back to the Photoslider page. When you get back, the slideshow advances slides many times in a row, depending how long the Photoslider tab was inactive.

The fix is to probe if the slideshow is in the active tab or not, and preventing the transition to be "queued" if it's not in the active tab. No other changes are needed, because we don't need to reset the slideshow timer.