Skip to content

Commit

Permalink
Fixed autoplay issue on tab blur..
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Oct 31, 2015
1 parent 588423e commit 30e5025
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightslider",
"version": "1.1.4",
"version": "1.1.5",
"homepage": "https://github.com/sachinchoolur/lightslider",
"authors": [
"Sachin N <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lightslider.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightslider - v1.1.4 - 2015-10-28
/*! lightslider - v1.1.5 - 2015-10-31
* https://github.com/sachinchoolur/lightslider
* Copyright (c) 2015 Sachin N; Licensed MIT */
/*! lightslider - v1.1.3 - 2015-04-14
Expand Down
11 changes: 10 additions & 1 deletion dist/js/lightslider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightslider - v1.1.4 - 2015-10-28
/*! lightslider - v1.1.5 - 2015-10-31
* https://github.com/sachinchoolur/lightslider
* Copyright (c) 2015 Sachin N; Licensed MIT */
(function ($, undefined) {
Expand Down Expand Up @@ -876,6 +876,15 @@
$this.enableDrag();
}
}

$(window).on('focus', function(){
$this.auto();
});

$(window).on('blur', function(){
clearInterval(interval);
});

$this.pager();
$this.pauseOnHover();
$this.controls();
Expand Down
4 changes: 2 additions & 2 deletions dist/js/lightslider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lightslider.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"swipe",
"thumbnail"
],
"version":"1.1.4",
"version":"1.1.5",
"author":{
"name":"Sachin N",
"url":"https://github.com/sachinchoolur"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lightslider",
"description": "jQuery lightSlider is a lightweight responsive content slider - carousel with animated thumbnails navigation",
"version": "1.1.4",
"version": "1.1.5",
"keywords": [
"slider",
"contentslider",
Expand Down
9 changes: 9 additions & 0 deletions src/js/lightslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,15 @@
$this.enableDrag();
}
}

$(window).on('focus', function(){
$this.auto();
});

$(window).on('blur', function(){
clearInterval(interval);
});

$this.pager();
$this.pauseOnHover();
$this.controls();
Expand Down

0 comments on commit 30e5025

Please sign in to comment.