<?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>24783</bug_id>
          
          <creation_ts>2014-02-24 13:18:58 +0000</creation_ts>
          <short_desc>non-normative examples for event sequences to be added to end of 11.2</short_desc>
          <delta_ts>2014-03-04 02:03:51 +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>PC</rep_platform>
          <op_sys>Windows NT</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>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>101233</commentid>
    <comment_count>0</comment_count>
      <attachid>1439</attachid>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-02-24 13:18:58 +0000</bug_when>
    <thetext>Created attachment 1439
HTML version of proposed note

As per the discussion on the list, I&apos;d propose this additional non-normative example note at the end of 11.2 to better illustrate the kind of event sequence authors can expect to get for touchscreen taps (as Rick said, probably the most complex case that may cause the most confusion).

Attached as HTML, but for ease:

Example

This section is non-normative.

Based on the outlined algorithm, a tap with a single finger (meaning this is a primary pointer) on a touchscreen will produce the following series of pointer events and compatibility mouse events (also listing the click event, to clarify that this is fired at the very end of sequence):

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 mousedown
7 gotpointercapture
8 (zero or more pointermove and mousemove events, depending on movement of the finger during the tap)
9 pointerup
10 mouseup
11 lostpointercapture
12 pointerout
13 mouseout
14 mouseleave
15 click.

If compatibility mouse events are being suppressed by cancelling the pointerdown event, the sequence of event for the same action will be:

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 gotpointercapture
7 (zero or more pointermove events, depending on movement of the finger during the tap)
8 pointerup
9 lostpointercapture
10 pointerout
11 mouseout
12 mouseleave
13 click</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101234</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-02-24 13:32:07 +0000</bug_when>
    <thetext>oops, typos:

&quot;fired at the very end of sequence&quot; &gt; &quot;fired at the very end of the sequence&quot;

&quot; the sequence of event for the same action will be&quot; &gt; &quot; the sequence of events for the same action will be&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101682</commentid>
    <comment_count>2</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-02-28 23:52:39 +0000</bug_when>
    <thetext>Here&apos;s my proposed text:

&quot;The activation of an element (click) would typically produce the following sequence:

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 mousedown
7 (zero or more pointermove and mousemove events, depending on movement of the pointer)
8 pointerup
9 mouseup
10 click
11 pointerout
12 mouseout
13 mouseleave

If, however, the pointerdown event is cancelled during this interaction then the sequence of events is:

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 (zero or more pointermove events, depending on movement of the pointer)
7 pointerup
8 click
9 pointerout
10 mouseout
11 mouseleave&quot;

Let me know if you think this is accurate and I&apos;ll drop it in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101694</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick H. Lauke">redux</who>
    <bug_when>2014-03-01 08:01:20 +0000</bug_when>
    <thetext>If we could retain a little bit of the intro text (which mentions that this is a primary pointer), and soften the para before the second list to say &quot;would&quot; rather than &quot;is&quot; to match the one before the first list, I think we&apos;re good with the following:

Example

This section is non-normative.

The activation of an element (click) with a single finger or stylus (meaning this is a primary pointer) would typically produce the following event sequence:

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 mousedown
7 (zero or more pointermove and mousemove events, depending on movement of the pointer)
8 pointerup
9 mouseup
10 click
11 pointerout
12 mouseout
13 mouseleave

If, however, the pointerdown event is cancelled during this interaction then the sequence of events would be:

1 mousemove
2 pointerover
3 mouseover
4 mouseenter
5 pointerdown
6 (zero or more pointermove events, depending on movement of the pointer)
7 pointerup
8 click
9 pointerout
10 mouseout
11 mouseleave</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101813</commentid>
    <comment_count>4</comment_count>
    <who name="Jacob Rossi [MSFT]">jrossi</who>
    <bug_when>2014-03-04 02:03:51 +0000</bug_when>
    <thetext>Changed as suggested and discussed:

https://dvcs.w3.org/hg/pointerevents/rev/0fc30a2b5dfe</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1439</attachid>
            <date>2014-02-24 13:18:58 +0000</date>
            <delta_ts>2014-02-24 13:18:58 +0000</delta_ts>
            <desc>HTML version of proposed note</desc>
            <filename>11.2-note-non-normative-event-sequence.html</filename>
            <type>text/html</type>
            <size>2140</size>
            <attacher name="Patrick H. Lauke">redux</attacher>
            
              <data encoding="base64">PGRpdiBjbGFzcz0ibm90ZSI+DQo8aDQ+RXhhbXBsZTwvaDQ+DQo8cD48aT5UaGlzIHNlY3Rpb24g
aXMgbm9uLW5vcm1hdGl2ZS48L2k+PC9wPg0KPHA+QmFzZWQgb24gdGhlIG91dGxpbmVkIGFsZ29y
aXRobSwgYS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