-
Notifications
You must be signed in to change notification settings - Fork 1
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
Where do forwarded "wheel" events fire? #51
Comments
|
Got it! That means you're not firing the wheel event "at the In UI Events parlance, that element seems to be called the topmost event target. I would end the forward wheel event algorithm with "at the topmost event target of the controller.[[Source]]'s viewport". But I missed another problem (which probably also explains why I got confused): "fire an event" can only be triggered within an event loop. In your case, that event loop should be that of the captured viewport. Right now, the algorithm fires the event from within steps that run in parallel (so outside of any event loop) and in the context of the capturing viewport. That is doubly invalid. The last step could perhaps be re-written to something like:
(I note the UI Events spec also has the notion of wheel event transaction to group a series of wheel events that may be relevant when forwarding as well) There may be an easier way to express "forward a UI event with the following coordinates" in simple terms. I haven't thought deeply about it, I was just confused because I did not understand where the event was supposed to fire ;) |
The spec fires the wheel event at a the "controller.[[Source]]'s viewport". I'm struggling to understand what viewport means here. What interface and instance does this refer to?
There is a notion of viewport in CSS, but that is not an interface at which a "wheel" event may be fired. There is also a
Viewport
interface but it does not inherit fromEventTarget
.Wheel events typically fire at an element and bubble to the
Document
andWindow
. Is the viewport here meant to be theDocument
orWindow
?In other words, how does an application listen to these forwarded "wheel" events?
The text was updated successfully, but these errors were encountered: