Updated the footable Lib.

This commit is contained in:
2016-03-19 03:51:35 +02:00
parent 1cad434a39
commit 3bc71a935c
801 changed files with 8543 additions and 3032 deletions

View File

@ -1,4 +1,4 @@
/*! UIkit 2.21.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
@ -12,7 +12,8 @@
toggle : ">*",
active : 0,
animation : false,
duration : 200
duration : 200,
swiping : true
},
animating: false,
@ -36,7 +37,7 @@
var $this = this;
this.on("click.uikit.switcher", this.options.toggle, function(e) {
this.on("click.uk.switcher", this.options.toggle, function(e) {
e.preventDefault();
$this.show(this);
});
@ -69,12 +70,17 @@
default:
$this.show(parseInt(item, 10));
}
}).on('swipeRight swipeLeft', function(e) {
e.preventDefault();
if(!window.getSelection().toString()) {
$this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1));
}
});
if (this.options.swiping) {
this.connect.on('swipeRight swipeLeft', function(e) {
e.preventDefault();
if(!window.getSelection().toString()) {
$this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1));
}
});
}
}
var toggles = this.find(this.options.toggle),
@ -180,6 +186,7 @@
UI.Utils.checkDisplay(next, true);
$this.animating = false;
});
});
}
@ -262,6 +269,8 @@
clsOut = cls[1] || cls[0];
}
UI.$body.css('overflow-x', 'hidden'); // fix scroll jumping in iOS
release = function() {
if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse');
@ -272,6 +281,8 @@
d.resolve();
UI.$body.css('overflow-x', '');
if (current) current.css({opacity:'', display:''});
}.bind(this)).show();