diff --git a/apps/common/main/lib/component/Slider.js b/apps/common/main/lib/component/Slider.js index 0c7cfade3..b146eb9e4 100644 --- a/apps/common/main/lib/component/Slider.js +++ b/apps/common/main/lib/component/Slider.js @@ -316,7 +316,6 @@ define([ me.delta = 100/(me.maxValue - me.minValue); me.includeSnap = me.options.includeSnap; me.intervalSnap = me.options.intervalSnap; - me.mouseFree = true; me.thumbs = []; if (me.options.el) { me.render(); @@ -378,7 +377,6 @@ define([ e.preventDefault(); e.stopPropagation(); resetPageX(e); - me.mouseFree = true; var index = e.data.index, lastValue = me.thumbs[index].value, @@ -444,7 +442,7 @@ define([ var onMouseDown = function (e) { if ( me.disabled ) return; - me.mouseFree = false; + var index = e.data.index, thumb = me.thumbs[index].thumb; diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index e9922cef7..e7fa9d01f 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -1201,8 +1201,6 @@ define([ }, btnDirectionRedraw: function(slider, gradientColorsStr) { - if(!slider.mouseFree) return; - this.gradientColorsStr = gradientColorsStr; if (this.mnuDirectionPicker.dataViewItems.length == 1) this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'}); diff --git a/apps/presentationeditor/main/app/view/ShapeSettings.js b/apps/presentationeditor/main/app/view/ShapeSettings.js index ce0947876..e378c4f91 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettings.js +++ b/apps/presentationeditor/main/app/view/ShapeSettings.js @@ -532,8 +532,6 @@ define([ }, btnDirectionRedraw: function(slider, gradientColorsStr) { - if(!slider.mouseFree) return; - this.gradientColorsStr = gradientColorsStr; if (this.mnuDirectionPicker.dataViewItems.length == 1) this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'}); diff --git a/apps/presentationeditor/main/app/view/SlideSettings.js b/apps/presentationeditor/main/app/view/SlideSettings.js index b2f7cb9e9..ac73297c6 100644 --- a/apps/presentationeditor/main/app/view/SlideSettings.js +++ b/apps/presentationeditor/main/app/view/SlideSettings.js @@ -606,9 +606,6 @@ define([ }, btnDirectionRedraw: function(slider, gradientColorsStr) { - if(!slider.mouseFree) return; - - this.gradientColorsStr = gradientColorsStr; if (this.mnuDirectionPicker.dataViewItems.length == 1) this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'}); diff --git a/apps/spreadsheeteditor/main/app/view/CellSettings.js b/apps/spreadsheeteditor/main/app/view/CellSettings.js index a79be80ee..a342ffa11 100644 --- a/apps/spreadsheeteditor/main/app/view/CellSettings.js +++ b/apps/spreadsheeteditor/main/app/view/CellSettings.js @@ -1077,7 +1077,6 @@ define([ }, btnDirectionRedraw: function(slider, gradientColorsStr) { - if(!slider.mouseFree) return; this.gradientColorsStr = gradientColorsStr; if (this.mnuDirectionPicker.dataViewItems.length == 1) diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js index cadaa4747..ecf7f9d93 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js @@ -1139,8 +1139,6 @@ define([ }, btnDirectionRedraw: function(slider, gradientColorsStr) { - if(!slider.mouseFree) return; - this.gradientColorsStr = gradientColorsStr; if (this.mnuDirectionPicker.dataViewItems.length == 1) this.mnuDirectionPicker.dataViewItems[0].$el.children(0).css({'background': 'radial-gradient(' + gradientColorsStr + ')'});