Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to send non-consumed scroll events back to the compositor? #424
Comments
|
If I'm not mistaken, when frame.scroll() happens and nothing scroll, we end up here: webrender/webrender/src/render_backend.rs Line 244 in dfa4246 So I imagine we could re-use |
|
I think I got it working. Closing. I'll reopen a proper issue and/or PR to support this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In BrowserHTML, we want to go back/forward in history when the user swipe right/left, like in Safari:
When the user scrolls horizontally, left to right, events are sent to WR, which will scroll layers. If scroll doesn't happen, we want the events to be sent back to the compositor. And then we might dispatch these events to the browserhtml script thread.
Also - thinking about it, we might want to do that too for regular - consumed - scroll events (
window.onscroll).