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

@vmpstr 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
+     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

That's a good question. It'd be nice to reserve this as a possible values in case there are uncommon platforms that don't expose this. Also, to your question of uninitialized value, do you think we should add another value or use "unknown" as the default value?

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

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

Received on Tuesday, 21 October 2025 15:48:30 UTC