From 2559acfb1ba85c4a242f8ec2782084c4e0becf8b Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 3 Mar 2014 11:11:12 -0600 Subject: [PATCH] Fixed disabled mode --- js/views/toggleView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/views/toggleView.js b/js/views/toggleView.js index 8f4dc4893c..468c598d18 100644 --- a/js/views/toggleView.js +++ b/js/views/toggleView.js @@ -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); },