Skip to content

Commit c021b3e

Browse files
JackHasaKeyboardmgol
authored andcommitted
mousedown: Fix a misplaced space
Closes jquery#1051
1 parent c905b51 commit c021b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/mousedown.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $( "#other" ).click(function() {
5454
});
5555
</code></pre>
5656
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message.</p>
57-
<p>The <code>mousedown</code> event is sent when any mouse button is clicked. To act only on specific buttons, we can use the event object's <code>which </code>property. Not all browsers support this property (Internet Explorer uses button instead), but jQuery normalizes the property so that it is safe to use in any browser. The value of <code>which</code> will be 1 for the left button, 2 for the middle button, or 3 for the right button.</p>
57+
<p>The <code>mousedown</code> event is sent when any mouse button is clicked. To act only on specific buttons, we can use the event object's <code>which</code> property. Not all browsers support this property (Internet Explorer uses button instead), but jQuery normalizes the property so that it is safe to use in any browser. The value of <code>which</code> will be 1 for the left button, 2 for the middle button, or 3 for the right button.</p>
5858
<p>This event is primarily useful for ensuring that the primary button was used to begin a drag operation; if ignored, strange results can occur when the user attempts to use a context menu. While the middle and right buttons can be detected with these properties, this is not reliable. In Opera and Safari, for example, right mouse button clicks are not detectable by default.</p>
5959
<p>If the user clicks on an element, drags away from it, and releases the button, this is still counted as a <code>mousedown</code> event. This sequence of actions is treated as a "canceling" of the button press in most user interfaces, so it is usually better to use the <code>click</code> event unless we know that the <code>mousedown</code> event is preferable for a particular situation.</p>
6060
</longdesc>

0 commit comments

Comments
 (0)