1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibWeb: Rename is_scrollable() to is_user_scrollable()

is_user_scrollable() is more appropriate name since this function
returns true only for boxes scrollable by user interaction.
This commit is contained in:
Aliaksandr Kalenik 2023-08-08 15:43:48 +02:00 committed by Andreas Kling
parent 491da2a810
commit 5f364e9bc1
4 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ bool EventHandler::handle_mousewheel(CSSPixelPoint position, unsigned button, un
auto* containing_block = paintable->containing_block();
while (containing_block) {
if (containing_block->is_scrollable()) {
if (containing_block->is_user_scrollable()) {
const_cast<Painting::PaintableBox*>(containing_block->paintable_box())->handle_mousewheel({}, position, buttons, modifiers, wheel_delta_x * scroll_step_size, wheel_delta_y * scroll_step_size);
break;
}