Skip to content

Update HTML Drag-and-Drop steps to include pointercancel firing.#6912

Merged
domenic merged 3 commits into
whatwg:mainfrom
mustaqahmed:main
Jul 30, 2021
Merged

Update HTML Drag-and-Drop steps to include pointercancel firing.#6912
domenic merged 3 commits into
whatwg:mainfrom
mustaqahmed:main

Conversation

@mustaqahmed

@mustaqahmed mustaqahmed commented Jul 28, 2021

Copy link
Copy Markdown
Contributor

Currently the pointercancel event firing at the start of drag is mentioned only in the PoitnerEvent spec (in the pointercancel section). The DND section in the HTML spec should mention this, probably in addition to current text in the PointerEvents spec.

#6758, w3c/pointerevents#384

  • At least two implementers are interested (and none opposed):
    • Chrome: already implemented, passes the WPT.
    • Firefox: already implemented, passes the WPT except for a mouse-capture case.
  • Tests are written and can be reviewed and commented upon at:
    • We already have a test: pointerevents/html/pointerevent_drag_interaction-manual.html
  • Implementation bugs are filed:
    • Not applicable, this PR is just "moving" the text from PointerEvents to HTML.

(See WHATWG Working Mode: Changes for more details.)


/dnd.html ( diff )
/infrastructure.html ( diff )

Comment thread source Outdated
</li>

<li>
<p><span data-x="concept-event-fire">Fire</span> at the <span>source node</span> an event named

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it needs to use https://w3c.github.io/pointerevents/#dfn-fire-a-pointer-event instead of concept-event fire.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread source Outdated
<li>
<p><span data-x="concept-event-fire">Fire</span> at the <span>source node</span> an event named
<code data-x="event-pointercancel">pointercancel</code> and any other follow-up events as required
by the <cite>Pointer Events</cite> spec.</p>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this kind of vagueness is not great, but I guess that's how the pointer events spec is structured, so probably it's OK.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, there is no algorithmic steps to link to here!

mustaqahmed added a commit to mustaqahmed/pointerevents that referenced this pull request Jul 30, 2021
This PR will follow the addition of `pointercancel` event firing step
in the HTML spec: whatwg/html#6912
@domenic domenic merged commit 53bc380 into whatwg:main Jul 30, 2021
patrickhlauke added a commit to w3c/pointerevents that referenced this pull request Aug 3, 2021
* Clarify `pointercancel` firing behavior on drag.

This PR will follow the addition of `pointercancel` event firing step
in the HTML spec: whatwg/html#6912

Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants