-
Notifications
You must be signed in to change notification settings - Fork 51
Initial 'source' defn #405
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| <dt><dfn attribute>source</dfn></dt> | ||
| <dd> | ||
| The <code>source</code> attribute is a ready only attribute which |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/ready/read
| <code>0</code>. | ||
| </dd> | ||
|
|
||
| <dt><dfn attribute>source</dfn></dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this attribute needs to be added to the WheelEvent interface above
| <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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What value would we expect if you create a WheelEvent? I think this is intended to be specified as the "un-initialized" value.
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
Closes #??
The following tasks have been completed:
Implementation commitment: