Skip to main content

Search and Top Navigation

Ticket #3342: 3342.diff
File 3342.diff, 0.8 KB (added by davidb, September 11, 2008 03:07PM UTC)

Proposed fix.

Index: ui/ui.slider.js
===================================================================
--- ui/ui.slider.js	(revision 669)
+++ ui/ui.slider.js	(working copy)
@@ -113,7 +113,7 @@
 			.parent()
 				.bind('focus', function(e) { self._focus(this.firstChild); })
 				.bind('blur', function(e) { self._blur(this.firstChild); })
-				.bind('keydown', function(e) { if(!self.options.noKeyboard) self._keydown(e.keyCode, this.firstChild); })
+				.bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); })
 		;
 		
 		// Bind the click to the slider itself
@@ -173,7 +173,9 @@
 				x: xpos,
 				y: ypos
 			}, handle);
+			return false;
 		}
+		return true;
 	},
 	_focus: function(handle,hard) {
 		this.currentHandle = $(handle).addClass('ui-slider-handle-active');

Download in other formats:

Original Format