Skip to main content

Search and Top Navigation

Ticket #3797: slider.patch.txt


File slider.patch.txt, 0.4 KB (added by fracmak, January 09, 2009 05:00PM UTC)

Rounding error patch

### Eclipse Workspace Patch 1.0
#P JQueryUI
Index: ui.slider.js
===================================================================
--- ui.slider.js	(revision 1577)
+++ ui.slider.js	(working copy)
@@ -254,7 +254,7 @@
 		if (valueMouseModStep > (this.options.step / 2))
 			normValue += this.options.step;
 
-		return normValue;
+		return Math.round(normValue);
 	},
 
 	_start: function(event) {

Download in other formats:

Original Format