<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8150</bug_id>
          
          <creation_ts>2006-04-03 00:15:21 -0700</creation_ts>
          <short_desc>Click is registered only if mouse pointer is fully stationary while mouse button is down (except for link and button)</short_desc>
          <delta_ts>2023-10-21 03:30:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aapo Laitinen">aapo-bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>a_protyasha</cc>
    
    <cc>grahamperrin</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38369</commentid>
    <comment_count>0</comment_count>
    <who name="Aapo Laitinen">aapo-bugzilla</who>
    <bug_when>2006-04-03 00:15:21 -0700</bug_when>
    <thetext>The click event handler attached to an element such as a table cell or a paragraph will fire only if the mouse pointer remains perfectly stationary while the mouse button is held down. However, click event handlers attached to links and buttons are fired even if the mouse moves a bit while the button is down.

It is very easy to move the mouse a couple of pixels while clicking. Not having any allowance at all makes Safari seem unresponsive. All elements should have at least some degree of allowance in regards to detecting clicks. For consistency, it might be best if they were very liberal in this regard, like buttons.

Strictly speaking the current behaviour is according to the standards:

&quot;A click is defined as a mousedown and mouseup over the same screen location.&quot;
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mouseevents

However, it is clear that being overly strict here is bad for usability and accessibility, not to mention inconsistent. Mozilla and Opera have thus chosen ignore this bit. The workaround is to simulate the click event with mousedown and mouseup.

Tested in nightly that was downloaded on 2006-04-03. Attaching a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38370</commentid>
    <comment_count>1</comment_count>
      <attachid>7480</attachid>
    <who name="Aapo Laitinen">aapo-bugzilla</who>
    <bug_when>2006-04-03 00:15:57 -0700</bug_when>
    <thetext>Created attachment 7480
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41003</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-03 06:29:31 -0700</bug_when>
    <thetext>Yes, onclick is called in Mozilla an WinIE as long as mousedown and mouseup are in the same object, regardless of how much the mouse pointer has moved. Of course, they don&apos;t agree on what to do with drag&amp;drop or when the two objects have parent-child relationship.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32498</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-26 09:35:29 -0800</bug_when>
    <thetext>The patch for bug 12133 resolved part of this problem. We should make a layout test so it doesn&apos;t regress, and fix the third case cited in this bug too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986664</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-21 03:30:24 -0700</bug_when>
    <thetext>I am able to click all three and also few pixels away before releasing mouse.

@Alexey - Is it reproducible to you? CCing - Abrar as well, since he is recently doing lot of work on event handling.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7480</attachid>
            <date>2006-04-03 00:15:57 -0700</date>
            <delta_ts>2006-04-03 00:15:57 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>StrictClick01.html</filename>
            <type>text/html</type>
            <size>1456</size>
            <attacher name="Aapo Laitinen">aapo-bugzilla</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+U2FmYXJpIGNsaWNrIGV2ZW50IHByb2JsZW08
L3RpdGxlPgo8L2hlYWQ+Cjxib2R5PgoKPGgxPlNhZmFyaSBjbGljayBldmVudCBwcm9ibGVtPC9o
MT4KCjxwPkNsaWNrIGVhY2ggb2YgdGhlIGZvbGxvd2luZyBlbGVtZW50cyB0byBhZHZhbmNlIHRo
ZSB2YWx1ZSBpbiB0aGVpciBjYXB0aW9uIGJ5IG9uZTo8L3A+Cgo8Zm9ybSBhY3Rpb249IiIgbWV0
aG9kPSJnZXQiPgoKPHA+PGEgaHJlZj0iIyIgc3R5bGU9ImRpc3BsYXkgOiBibG9jazsgd2lkdGgg
OiAxNTBweDsgYmFja2dyb3VuZCA6ICNlZWU7IiBvbmNsaWNrPSJ0aGlzLmZpcnN0Q2hpbGQubm9k
ZXZhbHVlID0gdGhpcy5maXJzdENoaWxkLm5vZGVWYWx1ZSsrOyByZXR1cm4gZmFsc2U7Ij4xPC9h
PjwvcD4KCjxwPjxidXR0b24gc3R5bGU9IndpZHRoIDogMTUwcHg7IiBvbmNsaWNrPSJ0aGlzLmZp
cnN0Q2hpbGQubm9kZXZhbHVlID0gdGhpcy5maXJzdENoaWxkLm5vZGVWYWx1ZSsrOyByZXR1cm4g
ZmFsc2U7Ij4xPC9idXR0b24+PC9wPgoKPHAgc3R5bGU9ImJhY2tncm91bmQgOiAjZWVlOyB3aWR0
aCA6IDE1MHB4OyIgb25jbGljaz0idGhpcy5maXJzdENoaWxkLm5vZGV2YWx1ZSA9IHRoaXMuZmly
c3RDaGlsZC5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