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

LibWeb: Do not consume scroll event in PaintableBox without overflow #24228

Merged
merged 1 commit into from
May 7, 2024

Conversation

matjojo
Copy link
Contributor

@matjojo matjojo commented May 5, 2024

Specifically, without scrollable overflow.
Fixes #24009, both on brave.com and on the reduction.
This fixes the bug that on old reddit with an expando open you could not scroll when having the cursor over the expando. Behaviour is now the same as on Chromium and Firefox.

The issue minimized to the following code: (Where with mouse over the blue box scroll inputs have no effect.)

<!DOCTYPE html>
<body>
   <div style="overflow: auto; height: 250px; width: 250px; background-color: blue;"></div>
   <div style="height: 1080px; width: 50px; background-color: black;"></div>
</body>

</html>

A process question:
My commit title is less then 70 characters as the pre commit hook required. Would it be okay to expand the github title to longer to include the extra context that this is about scrollable overflow in the title here even if it goes past the 70 character view?

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 5, 2024
@kalenikaliaksandr
Copy link
Contributor

Could you add a text-test for this change please. the test will have to use internals.wheel() to hit changed function, you can use https://github.com/SerenityOS/serenity/blob/master/Tests/LibWeb/Ref/scroll-using-mousewheel-event.html as an example.

Also could you check if the change solve #24009 ? if so, please mention the issue in the commit description.

@matjojo
Copy link
Contributor Author

matjojo commented May 6, 2024

@kalenikaliaksandr

I created a test showing the expected behaviour and added the "fixes #24009" text to the commit text and the GitHub pull request text.

Specifically, without scrollable overflow.

Fixes SerenityOS#24009, both on brave.com and on the reduction.
@kalenikaliaksandr kalenikaliaksandr merged commit cd1eeb3 into SerenityOS:master May 7, 2024
13 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label May 7, 2024
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

Successfully merging this pull request may close these issues.

LibWeb: brave.com is not scrollable with the mouse wheel
2 participants