Skip to main content

Search and Top Navigation

Ticket #4555: troughclickable.patch
File troughclickable.patch, 0.5 KB (added by pixeldrew, May 27, 2009 09:44AM UTC)

patch to disable trough on mouse click

Index: ui.slider.js
===================================================================
--- ui.slider.js	(revision 2612)
+++ ui.slider.js	(working copy)
@@ -249,6 +249,7 @@
 		};
 
 		normValue = this._normValueFromMouse(position);
+		if(mouseOverHandle && !o.clickableTrough) return false;
 		this._slide(event, index, normValue);
 		return true;
 
@@ -551,7 +552,8 @@
 		range: false,
 		step: 1,
 		value: 0,
-		values: null
+		values: null,
+		clickableTrough : true
 	}
 });

Download in other formats:

Original Format