Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Mouse: Always call event.preventDefault() in _mouseDown if we've met …

…the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors.
  • Loading branch information...
commit a829697d0c9083438bde3a2e47964c29bfbc9417 1 parent 060af83
Scott González authored October 13, 2010

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. 6  ui/jquery.ui.mouse.js
6  ui/jquery.ui.mouse.js
@@ -86,11 +86,7 @@ $.widget("ui.mouse", {
86 86
 			.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
87 87
 			.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
88 88
 
89  
-		// preventDefault() is used to prevent the selection of text here -
90  
-		// however, in Safari, this causes select boxes not to be selectable
91  
-		// anymore, so this fix is needed
92  
-		($.browser.safari || event.preventDefault());
93  
-
  89
+		event.preventDefault();
94 90
 		event.originalEvent.mouseHandled = true;
95 91
 		return true;
96 92
 	},

0 notes on commit a829697

Please sign in to comment.
Something went wrong with that request. Please try again.