Skip to content

Commit 30e5025

Browse files
committed
Fixed autoplay issue on tab blur..
1 parent 588423e commit 30e5025

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightslider",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"homepage": "https://github.com/sachinchoolur/lightslider",
55
"authors": [
66
"Sachin N <[email protected]>"

dist/css/lightslider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! lightslider - v1.1.4 - 2015-10-28
1+
/*! lightslider - v1.1.5 - 2015-10-31
22
* https://github.com/sachinchoolur/lightslider
33
* Copyright (c) 2015 Sachin N; Licensed MIT */
44
/*! lightslider - v1.1.3 - 2015-04-14

dist/js/lightslider.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! lightslider - v1.1.4 - 2015-10-28
1+
/*! lightslider - v1.1.5 - 2015-10-31
22
* https://github.com/sachinchoolur/lightslider
33
* Copyright (c) 2015 Sachin N; Licensed MIT */
44
(function ($, undefined) {
@@ -876,6 +876,15 @@
876876
$this.enableDrag();
877877
}
878878
}
879+
880+
$(window).on('focus', function(){
881+
$this.auto();
882+
});
883+
884+
$(window).on('blur', function(){
885+
clearInterval(interval);
886+
});
887+
879888
$this.pager();
880889
$this.pauseOnHover();
881890
$this.controls();

dist/js/lightslider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lightslider.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"swipe",
2020
"thumbnail"
2121
],
22-
"version":"1.1.4",
22+
"version":"1.1.5",
2323
"author":{
2424
"name":"Sachin N",
2525
"url":"https://github.com/sachinchoolur"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lightslider",
33
"description": "jQuery lightSlider is a lightweight responsive content slider - carousel with animated thumbnails navigation",
4-
"version": "1.1.4",
4+
"version": "1.1.5",
55
"keywords": [
66
"slider",
77
"contentslider",

src/js/lightslider.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,15 @@
873873
$this.enableDrag();
874874
}
875875
}
876+
877+
$(window).on('focus', function(){
878+
$this.auto();
879+
});
880+
881+
$(window).on('blur', function(){
882+
clearInterval(interval);
883+
});
884+
876885
$this.pager();
877886
$this.pauseOnHover();
878887
$this.controls();

0 commit comments

Comments
 (0)