Code adjustments
This commit is contained in:
parent
f882bac6f2
commit
6672f556e1
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
@ -5,7 +5,7 @@
|
||||
* @copyright 2014 by Tobias Reich
|
||||
*/
|
||||
|
||||
build = {};
|
||||
build = {}
|
||||
|
||||
build.divider = function(title) {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* @copyright 2014 by Tobias Reich
|
||||
*/
|
||||
|
||||
multiselect = {};
|
||||
multiselect = {}
|
||||
|
||||
multiselect.position = {
|
||||
|
||||
|
@ -7,48 +7,48 @@
|
||||
|
||||
swipe = {
|
||||
|
||||
obj: null,
|
||||
tolerance: 150,
|
||||
offset: 0,
|
||||
obj: null,
|
||||
tolerance: 150,
|
||||
offset: 0
|
||||
|
||||
start: function(obj, tolerance) {
|
||||
}
|
||||
|
||||
if (obj) swipe.obj = obj;
|
||||
if (tolerance) swipe.tolerance = tolerance;
|
||||
swipe.start = function(obj, tolerance) {
|
||||
|
||||
return true;
|
||||
if (obj) swipe.obj = obj;
|
||||
if (tolerance) swipe.tolerance = tolerance;
|
||||
|
||||
},
|
||||
return true;
|
||||
|
||||
move: function(e) {
|
||||
}
|
||||
|
||||
if (swipe.obj===null) return false;
|
||||
swipe.move = function(e) {
|
||||
|
||||
swipe.offset = -1 * e.x;
|
||||
if (swipe.obj===null) return false;
|
||||
|
||||
swipe.offset = -1 * e.x;
|
||||
|
||||
swipe.obj.css({
|
||||
WebkitTransform: 'translateX(' + swipe.offset + 'px)',
|
||||
MozTransform: 'translateX(' + swipe.offset + 'px)',
|
||||
transform: 'translateX(' + swipe.offset + 'px)'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
swipe.stop = function(e, left, right) {
|
||||
|
||||
if (e.x<=-swipe.tolerance) left(true);
|
||||
else if (e.x>=swipe.tolerance) right(true);
|
||||
else if (swipe.obj!==null) {
|
||||
swipe.obj.css({
|
||||
WebkitTransform: 'translateX(' + swipe.offset + 'px)',
|
||||
MozTransform: 'translateX(' + swipe.offset + 'px)',
|
||||
transform: 'translateX(' + swipe.offset + 'px)'
|
||||
WebkitTransform: 'translateX(0px)',
|
||||
MozTransform: 'translateX(0px)',
|
||||
transform: 'translateX(0px)'
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
stop: function(e, left, right) {
|
||||
|
||||
if (e.x<=-swipe.tolerance) left(true);
|
||||
else if (e.x>=swipe.tolerance) right(true);
|
||||
else if (swipe.obj!==null) {
|
||||
swipe.obj.css({
|
||||
WebkitTransform: 'translateX(0px)',
|
||||
MozTransform: 'translateX(0px)',
|
||||
transform: 'translateX(0px)'
|
||||
});
|
||||
}
|
||||
|
||||
swipe.obj = null;
|
||||
swipe.offset = 0;
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
swipe.obj = null;
|
||||
swipe.offset = 0;
|
||||
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
* @copyright 2014 by Tobias Reich
|
||||
*/
|
||||
|
||||
visible = {};
|
||||
visible = {}
|
||||
|
||||
visible.albums = function() {
|
||||
if ($('#tools_albums').css('display')==='block') return true;
|
||||
|
Loading…
Reference in New Issue
Block a user