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

Element parameter as the presentation area might make it hard to implement #2

Open
NavidZ opened this issue Mar 2, 2020 · 1 comment

Comments

@NavidZ
Copy link
Member

NavidZ commented Mar 2, 2020

In the requestPresenter API we have an element as the presentation area meaning that we will never draw beyond the boundary of that element with this API.
I wanted to bring this up that an element on the web could be randomly shaped with all sort of clip paths.
We should be able to support that with extra plumbing within Chrome but I wonder if the native APIs such as the one proposed on Windows could handle such a thing.

@dlibby-
Copy link
Collaborator

dlibby- commented Mar 3, 2020

I was writing up a response how in practice this shouldn't matter, since clip-path should affect hit testing and we would not produce a trail if the website does not call setLastRenderedPoint during a frame where a PointerEvent was dispatched.

But I failed to realize the implications of implicit pointer capture, where move events are streamed to the listener that received pointerdown.

I think conceptually having it be an axis-aligned bounding rectangle could be a reasonable limitation (and indeed the proposed Windows API only handles rectangles), but this does need more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants