Commit c1bde107 authored by Valentin Hervieu's avatar Valentin Hervieu

Remove the delta checking in updateLowHandle because it leads to hard-to-debug bugs. Closes # 156.

parent bf838db1
...@@ -473,7 +473,7 @@ function throttle(func, wait, options) { ...@@ -473,7 +473,7 @@ function throttle(func, wait, options) {
{ {
this.updateLowHandle(this.valueToOffset(this.scope.rzSliderModel)); this.updateLowHandle(this.valueToOffset(this.scope.rzSliderModel));
/* /*
the order here is important since the selection bar should be the order here is important since the selection bar should be
updated after the high handle but before the combined label updated after the high handle but before the combined label
*/ */
...@@ -820,10 +820,6 @@ function throttle(func, wait, options) { ...@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
*/ */
updateLowHandle: function(newOffset) updateLowHandle: function(newOffset)
{ {
var delta = Math.abs(this.minH.rzsl - newOffset);
if(this.minLab.rzsv && delta < 1) { return; }
this.setLeft(this.minH, newOffset); this.setLeft(this.minH, newOffset);
this.translateFn(this.scope.rzSliderModel, this.minLab); this.translateFn(this.scope.rzSliderModel, this.minLab);
this.setLeft(this.minLab, newOffset - this.minLab.rzsw / 2 + this.handleHalfWidth); this.setLeft(this.minLab, newOffset - this.minLab.rzsw / 2 + this.handleHalfWidth);
......
This diff is collapsed.
...@@ -820,10 +820,6 @@ function throttle(func, wait, options) { ...@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
*/ */
updateLowHandle: function(newOffset) updateLowHandle: function(newOffset)
{ {
var delta = Math.abs(this.minH.rzsl - newOffset);
if(this.minLab.rzsv && delta < 1) { return; }
this.setLeft(this.minH, newOffset); this.setLeft(this.minH, newOffset);
this.translateFn(this.scope.rzSliderModel, this.minLab); this.translateFn(this.scope.rzSliderModel, this.minLab);
this.setLeft(this.minLab, newOffset - this.minLab.rzsw / 2 + this.handleHalfWidth); this.setLeft(this.minLab, newOffset - this.minLab.rzsw / 2 + this.handleHalfWidth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment