Delete mouseFree
This commit is contained in:
parent
5ca8b6cff0
commit
ec154ba349
|
@ -316,7 +316,6 @@ define([
|
||||||
me.delta = 100/(me.maxValue - me.minValue);
|
me.delta = 100/(me.maxValue - me.minValue);
|
||||||
me.includeSnap = me.options.includeSnap;
|
me.includeSnap = me.options.includeSnap;
|
||||||
me.intervalSnap = me.options.intervalSnap;
|
me.intervalSnap = me.options.intervalSnap;
|
||||||
me.mouseFree = true;
|
|
||||||
me.thumbs = [];
|
me.thumbs = [];
|
||||||
if (me.options.el) {
|
if (me.options.el) {
|
||||||
me.render();
|
me.render();
|
||||||
|
@ -378,7 +377,6 @@ define([
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
resetPageX(e);
|
resetPageX(e);
|
||||||
me.mouseFree = true;
|
|
||||||
|
|
||||||
var index = e.data.index,
|
var index = e.data.index,
|
||||||
lastValue = me.thumbs[index].value,
|
lastValue = me.thumbs[index].value,
|
||||||
|
@ -444,7 +442,7 @@ define([
|
||||||
|
|
||||||
var onMouseDown = function (e) {
|
var onMouseDown = function (e) {
|
||||||
if ( me.disabled ) return;
|
if ( me.disabled ) return;
|
||||||
me.mouseFree = false;
|
|
||||||
var index = e.data.index,
|
var index = e.data.index,
|
||||||
thumb = me.thumbs[index].thumb;
|
thumb = me.thumbs[index].thumb;
|
||||||
|
|
||||||
|
|
|
@ -1201,8 +1201,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||||
if(!slider.mouseFree) return;
|
|
||||||
|
|
||||||
this.gradientColorsStr = gradientColorsStr;
|
this.gradientColorsStr = gradientColorsStr;
|
||||||
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
||||||
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
||||||
|
|
|
@ -532,8 +532,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||||
if(!slider.mouseFree) return;
|
|
||||||
|
|
||||||
this.gradientColorsStr = gradientColorsStr;
|
this.gradientColorsStr = gradientColorsStr;
|
||||||
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
||||||
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
||||||
|
|
|
@ -606,9 +606,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||||
if(!slider.mouseFree) return;
|
|
||||||
|
|
||||||
|
|
||||||
this.gradientColorsStr = gradientColorsStr;
|
this.gradientColorsStr = gradientColorsStr;
|
||||||
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
||||||
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
||||||
|
|
|
@ -1077,7 +1077,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||||
if(!slider.mouseFree) return;
|
|
||||||
|
|
||||||
this.gradientColorsStr = gradientColorsStr;
|
this.gradientColorsStr = gradientColorsStr;
|
||||||
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
||||||
|
|
|
@ -1139,8 +1139,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||||
if(!slider.mouseFree) return;
|
|
||||||
|
|
||||||
this.gradientColorsStr = gradientColorsStr;
|
this.gradientColorsStr = gradientColorsStr;
|
||||||
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
if (this.mnuDirectionPicker.dataViewItems.length == 1)
|
||||||
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});
|
||||||
|
|
Loading…
Reference in a new issue