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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24348</bug_id>
          
          <creation_ts>2014-01-22 00:16:54 +0000</creation_ts>
          <short_desc>pointerdown/pointerup/pointercancel on non-hover devices</short_desc>
          <delta_ts>2014-01-24 00:00:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>PointerEventsWG</product>
          <component>Pointer Events specification</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Patrick H. Lauke">redux</reporter>
          <assigned_to name="Jacob Rossi [MSFT]">jrossi</assigned_to>
          <cc>dfreedm</cc>
    
    <cc>public-pointer-events</cc>
          
          <qa_contact name="Pointer Events Bugzilla list">public-pointer-events-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98855</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-01-22 00:16:54 +0000</bug_when>
    <thetext>In the current spec, pointerdown/pointerup/pointercancel on input devices that do not support hover MUST fire a pointerover/pointerout/pointerout (respectively, before in the first case and after in the other two cases). pointerenter/pointerleave should also be added.

Proposed changes:


- &quot;5.2.2 The pointerdown event&quot;

Currently: &quot;For input devices that do not support hover, a user agent must also fire a pointerover event preceding the pointerdown event.&quot;

Change to: &quot;For input devices that do not support hover, a user agent must also fire a pointerover and pointerenter event preceding the pointerdown event.&quot;


- &quot;5.2.3 The pointerup event&quot;

Currently: &quot;For input devices that do not support hover, a user agent must also fire a pointerout event after firing the pointerup event.&quot;

Change to: &quot;For input devices that do not support hover, a user agent must also fire a pointerout and pointerleave event after firing the pointerup event.&quot;


- &quot;5.2.4 The pointercancel event&quot;

Currently: &quot;A user agent must also fire a pointerout event after firing the pointercancel event.&quot;

Change to: &quot;A user agent must also fire a pointerout and pointerleave event after firing the pointercancel event.&quot;

[Incidentally, should there be something here about pointercancel generally not being applicable to input devices that DO support hover?]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98904</commentid>
    <comment_count>1</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-01-22 22:52:36 +0000</bug_when>
    <thetext>Yep, looks like an editorial mistake when we added enter/leave.

Change:
https://dvcs.w3.org/hg/pointerevents/rev/95b152ce34eb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98905</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Freedman">dfreedm</who>
    <bug_when>2014-01-22 23:04:22 +0000</bug_when>
    <thetext>Minor ordering question: should the events be sent in {over,out} then {enter,leave} order, or {enter,leave} then {over,out} order?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98921</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-01-23 01:08:51 +0000</bug_when>
    <thetext>(In reply to Daniel Freedman from comment #2)
&gt; Minor ordering question: should the events be sent in {over,out} then
&gt; {enter,leave} order, or {enter,leave} then {over,out} order?

If you mean the order in which the two events need to fired, I based it on what I observed in IE11 on a touch-enabled laptop, so

pointerover &gt; pointerenter &gt; pointerdown

pointerup &gt; pointerout &gt; pointerleave

in this order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98961</commentid>
    <comment_count>4</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-01-23 22:32:08 +0000</bug_when>
    <thetext>I can clarify that the ordering is important.  I&apos;m also realizing that I should expand this change a bit to include mention of this behavior in the enter/leave definitions as well (over/out already make mention of it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98973</commentid>
    <comment_count>5</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-01-24 00:00:21 +0000</bug_when>
    <thetext>Let&apos;s see if this is better:
https://dvcs.w3.org/hg/pointerevents/rev/b2f89ea8ccf5 

I changed the language to be more explicit about the ordering (e.g. &quot;dispatch a ____ event followed by a _____ event&quot;). I also added links in the over, out, enter, leave definitions to the down/up/cancel definitions where this behavior is defined.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>