diff --git a/index.html b/index.html index 1a4a7c2..1b0d819 100644 --- a/index.html +++ b/index.html @@ -899,6 +899,66 @@

Event dispatch

Otherwise (|event| is a click or auxclick event for which |userEvent| is a pointerup event that was dispatched uncaptured) let |target| be the nearest common inclusive ancestor of the corresponding pointerdown and pointerup targets in the DOM at the moment |event| is being dispatched.

+
  • +

    If |event| is a click event, then:

    +
      +
    1. +

      Let |pointerDownTarget|, |pointerDownX|, |pointerDownY|, |pointerUpTarget|, |pointerUpX|, and |pointerUpY| each be null.

      +
    2. + +
    3. +

      If |event| had corresponding pointerdown and pointerup events preceding it, then:

      +
        +
      1. +

        Set |pointerDownTarget| to the corresponding pointerdown event's event target.

        +
      2. + +
      3. +

        Set |pointerDownX| to the corresponding pointerdown event's clientX.

        +
      4. + +
      5. +

        Set |pointerDownY| to the corresponding pointerdown event's clientY.

        +
      6. + +
      7. +

        Set |pointerUpTarget| to the corresponding pointerup event's event target.

        +
      8. + +
      9. +

        Set |pointerUpX| to the corresponding pointerup event's clientX.

        +
      10. + +
      11. +

        Set |pointerUpY| to the corresponding pointerup event's clientY.

        +
      12. +
      +
    4. + +
    5. +

      Otherwise:

      +
        +
      1. +

        Set |pointerDownTarget| and |pointerUpTarget| to |event|'s event target.

        +
      2. + +
      3. +

        Set |pointerDownX| and |pointerUpX| to |event|'s clientX.

        +
      4. + +
      5. +

        Set |pointerDownY| and |pointerUpY| to |event|'s clientY.

        +
      6. +
      +
    6. + +
    7. +

      Run light dismiss activities given |pointerDownTarget|, |pointerDownX|, |pointerDownY|, |pointerUpTarget|, |pointerUpX|, and |pointerUpY|.

      +
    8. +
    + +
  • +
  • Dispatch |event| to |target| following the [[UIEVENTS]] spec.

    If |userEvent| was captured, |event| is dispatched to the capturing target of |userEvent| even though the {{GlobalEventHandlers/lostpointercapture}} event with the same {{PointerEvent/pointerId}} has been dispatched already.