slider: fixed translateRange - axis parameter was missing (closes #2862)

This commit is contained in:
Paul Bakaus 2008-05-27 11:19:23 +00:00
parent 57c3bc5c1e
commit ece0c9eb79

View File

@ -247,7 +247,7 @@
if (this.currentHandle[0] == this.handle[0] && value >= this.translateValue(this.value(1),axis)) if (this.currentHandle[0] == this.handle[0] && value >= this.translateValue(this.value(1),axis))
value = this.translateValue(this.value(1,axis) - this.oneStep(axis), axis); value = this.translateValue(this.value(1,axis) - this.oneStep(axis), axis);
if (this.currentHandle[0] == this.handle[1] && value <= this.translateValue(this.value(0),axis)) if (this.currentHandle[0] == this.handle[1] && value <= this.translateValue(this.value(0),axis))
value = this.translateValue(this.value(0,axis) + this.oneStep(axis)); value = this.translateValue(this.value(0,axis) + this.oneStep(axis), axis);
} }
if (this.options.handles) { if (this.options.handles) {
var handle = this.options.handles[this.handleIndex()]; var handle = this.options.handles[this.handleIndex()];