Changeset 5524
- Timestamp:
- 05/08/08 21:49:43 (3 days ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.slider.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.slider.js
r5513 r5524 249 249 if (this.firstValue != this.value()) 250 250 this.propagate('change', e); 251 this.focus(this.currentHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events 251 // This is a especially ugly fix for strange blur events happening on mousemove events 252 this.focus(this.currentHandle, true); 252 253 return false; 253 254 }, 254 255 255 256 oneStep: function(axis) { 256 if(!axis) axis = this.options.axis == "vertical" ? 2 : 1; 257 return this.options.stepping[axis == 1 ? "x" : "y"] ? this.options.stepping[axis == 1 ? "x" : "y"] : (this.options.realMax[axis == 1 ? "x" : "y"] / this.actualSize[axis == 1 ? "width" : "height"]) * 5; 257 if (!axis) 258 axis = this.options.axis == "vertical" ? 2 : 1; 259 return this.options.stepping[axis == 1 ? "x" : "y"] 260 ? this.options.stepping[axis == 1 ? "x" : "y"] 261 : (this.options.realMax[axis == 1 ? "x" : "y"] / this.actualSize[axis == 1 ? "width" : "height"]) * 5; 258 262 }, 259 263