-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[BUG] Webkit mouse wheel scrolling not working in headless mode #15566
Comments
- Mouse wheel should scroll up and down - Mouse wheel + shift should scroll right and left - Mouse wheel + ctrl should zoom - Adjust zoom level a bit - Run webkit in headed mode (with xvfb), because the mouse wheel scrolling is not working in headless mode: microsoft/playwright#15566
The test is actually flaky, it fails every second run for me on chromium macos with the error below. Do you have a standalone example where the scroll issue can be reproduced?
|
Hm... You're right. It seems the the problem only happens if the event listener is attached to a svg element: https://github.com/ivy-lli/playwright-webkit-headless-wheel-bug/blob/master/src/test.html#L23-L27 If also add a test which checks that the scrolling only gets applied if the mouse is over the svg box: https://github.com/ivy-lli/playwright-webkit-headless-wheel-bug/blob/master/tests/example.spec.ts If I run this tests, everything is working correctly, except with the headless webkit browser: I hope this helps. |
Speculatively assigning to Yury so that it doesn't fall through the cracks! |
Thanks a lot for your work! Playwright is an awesome piece of software 🎉 |
Context:
Code Snippet
I've created a small test for this:
with the config:
Describe the bug
The mouse wheel scrolling seems to be defect in the webkit headless mode. If I run the above test with chromium or firefox it works in headful and headless mode. With webkit it only works in the headful mode.
The text was updated successfully, but these errors were encountered: