Skip to content

When dragging the scroll bar, reported direction ist always "right" and stays "right" afterwards #362

Open
@odysseuscm

Description

Hello 👋

Describe the bug
I use the on "scroll" event to determine the scroll direction. When scrolling with the mouse wheel the direction is correctly reported as "up" and "down". When scrolling by dragging the scroll bar, the direction is always reported as "right" and from now on stays "right" whichever way you scroll. Even if you scroll by mouse wheel again.

To Reproduce
I built a test case here: https://kunden.cmcm.info/ls-direction-bug/index.html
Once you drag the scroll bar, the reported direction is always "right".

Expected behavior
Scroll direction should be reported correctly whatever way you scroll

Desktop (please complete the following information):
confirmed for Chrome 95 and Firefox 93

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions