Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add move Event #11278

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,18 @@ Issue: In what order are scrollend events dispatched? Ordered based on scroll st
1. Otherwise, <a>fire an event</a> named <a event>scrollend</a> at <var>target</var>.
1. Empty <var>doc</var>'s <a>pending scrollend event targets</a>.

<h3 id=moving-viewports>Moving viewports</h3>

This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]

When asked to <dfn export for=Document>run the move steps</dfn> for a {{Document}} <var>doc</var>, run these steps:

1. If <var>doc</var>'s client window has had its position relative to the <a>Web-exposed screen area</a> changed
(e.g. as a result of the user moving the browser window)
since the last time these steps were run,
<a>fire an event</a> named <a event>move</a>
at the {{Window}} object associated with <var>doc</var>.

<h3 id=event-summary>Event summary</h3>

<i>This section is non-normative.</i>
Expand Down Expand Up @@ -2027,6 +2039,12 @@ Issue: In what order are scrollend events dispatched? Ordered based on scroll st
<td>Fired at the {{VisualViewport}}, {{Document}}, or element when a scroll is <a lt="scroll completed">completed</a>: the
{{VisualViewport}}, <a>viewport</a>, or element has been scrolled, the scroll sequence has ended and any scroll offset changes have
been applied.
<tr>
<td><dfn event for="Window">move</dfn>
<td>{{Event}}
<td>{{Window}}
<td>Fired at the {{Window}} when the client window is moved relative to the <a>Web-exposed screen area</a>.
<tr>
</table>


Expand Down