Fixed disabled mode

This commit is contained in:
Max Lynch
2014-03-03 11:11:12 -06:00
parent 74e8f18eec
commit 2559acfb1b

View File

@@ -47,6 +47,8 @@
},
dragStart: function(e) {
if(this.checkbox.disabled) return;
this._dragInfo = {
width: this.el.offsetWidth,
left: this.el.offsetLeft,
@@ -96,11 +98,16 @@
});
},
endDrag: function(e) {
this._dragInfo = null;
},
hold: function(e) {
this.el.classList.add('dragging');
},
release: function(e) {
this.el.classList.remove('dragging');
this.endDrag(e);
},