Re: [w3c/uievents] Initial 'source' defn (PR #405)

@flackr commented on this pull request.



> @@ -163,6 +163,21 @@
      The <a>un-initialized value</a> of this attribute MUST be
      <code>0</code>.
     </dd>
+
+    <dt><dfn attribute>source</dfn></dt>
+    <dd>
+     The <code>source</code> attribute is a ready only attribute which

s/ready/read

> @@ -163,6 +163,21 @@
      The <a>un-initialized value</a> of this attribute MUST be
      <code>0</code>.
     </dd>
+
+    <dt><dfn attribute>source</dfn></dt>

I think this attribute needs to be added to the WheelEvent interface above

> @@ -163,6 +163,21 @@
      The <a>un-initialized value</a> of this attribute MUST be
      <code>0</code>.
     </dd>
+
+    <dt><dfn attribute>source</dfn></dt>
+    <dd>
+     The <code>source</code> attribute is a ready only attribute which
+     indicates the reason this event has been generated and takes one of
+     three possible values:

What value would we expect if you create a WheelEvent? I think this is intended to be specified as the "un-initialized" value.

> @@ -163,6 +163,21 @@
      The <a>un-initialized value</a> of this attribute MUST be
      <code>0</code>.
     </dd>
+
+    <dt><dfn attribute>source</dfn></dt>
+    <dd>
+     The <code>source</code> attribute is a ready only attribute which
+     indicates the reason this event has been generated and takes one of
+     three possible values:
+
+       * 'user': this event has been generated as a result of direct user
+         action.
+       * 'momentum': this event has been generated as a result of momentum
+         scrolling which is an animation that is done after the user stops
+         directly interacting with the input device.
+       * 'unknown': the browser could not determine the reason this event
+         has been generated

Outside of programmatically generated events, do we know if there are any platforms where we won't be able to determine this? I wonder if we need an unknown value at all.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/pull/405#pullrequestreview-3361374414
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/pull/405/review/3361374414@github.com>

Received on Tuesday, 21 October 2025 15:27:40 UTC