Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$(window).focus startAuto() when autoPaused #1162

Open
wants to merge 240 commits into
base: 4.0
Choose a base branch
from
Open

$(window).focus startAuto() when autoPaused #1162

wants to merge 240 commits into from

Conversation

znebb
Copy link

@znebb znebb commented Sep 7, 2017

The slider starts always when it was blurred and focused, even when its paused.
The slider should only start, when it was autoPaused.

$(window).focus(function() {
	if(slider.autoPaused) {
		el.startAuto(true);
		slider.autoPaused = null;
	}
}).blur(function() {
	if(slider.interval){
		el.stopAuto(true);
		slider.autoPaused = true;
	}
});

Steven Wanderski and others added 30 commits February 28, 2013 01:35
bxSlider function should return jQuery object when selector does not match anything
If the position doesn't exist (e.g. if you destroy the slider on a next click), this prevents it from throwing an error.
danila-dev and others added 30 commits March 26, 2018 14:45
remove unnecessary / duplicate boolean setting
InvalidPointerId on Android 6
FIX external call to method .stopAuto()
Fixing flickering (on -webkit)
Update readme with CDN resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.