ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

Scrollbar gutters don't respect scroll offset

Open Psychpsyo opened this issue 8 months ago • 1 comments

Summary

When I have a scrollable element in ladybird with a visible scrollbar gutter and I scroll the page around it, the scrollbar gutter does not move.

Operating system

Linux

Steps to reproduce

  1. Open the reduced test case
  2. Click the red box's scrollbar so that it keeps showing the scrollbar gutter
  3. Scroll down the entire page
  4. Observe that the gutter stays in place

Expected behavior

The scrollbar gutter should scroll up.

Actual behavior

The scrollbar gutter stays in place.

URL for a reduced test case

N/A

HTML/SVG/etc. source for a reduced test case

<!DOCTYPE html>
<style>
  body {
    height: 200vh;
  }
  div {
    width: 100px;
    height: 100px;
    background-color: red;
    overflow-y: scroll;
  }
</style>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in purus tellus. Maecenas euismod hendrerit velit a lacinia. Maecenas id vestibulum nibh. Phasellus in justo at ante dignissim fringilla sit amet eget tellus. Fusce eget euismod lacus, non semper arcu. Fusce laoreet eleifend tincidunt. Donec efficitur dictum orci suscipit egestas. Ut interdum faucibus massa et finibus. </div>

Log output and (if possible) backtrace

None

Screenshots or screen recordings

Image

https://github.com/user-attachments/assets/ab109546-3a89-4a37-b091-9c7a4d153d33

Build flags or config settings

None

Contribute a patch?

  • [ ] I’ll contribute a patch for this myself.

Psychpsyo avatar May 05 '25 08:05 Psychpsyo

Hi! @Psychpsyo I would like to submit a PR for this issue. The PR would be submitted soon.

ailunc avatar May 05 '25 17:05 ailunc