motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] scroll progress is negative in reverse directions

Open li-kai opened this issue 6 months ago • 0 comments

Repro: https://codesandbox.io/p/sandbox/y76dz6

In the following scenarios, the scroll progress value is negative:

  1. flex: column-reverse
  2. flex: row-reverse
  3. writing-mode: vertical-rl

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/y76dz6
  2. Scroll all 3 boxes
  3. See scroll value is negative

5. Expected behavior

Doc says the value should be between (0, 1).

6. Video or screenshots

Image

7. Environment details

I was able to repro in Chrome, Safari and Firefox.

li-kai avatar Jul 31 '25 16:07 li-kai