Skip to content

fix(uikit): remove onWheel handler to prevent jitter on trackpad scroll#593

Merged
nstus merged 2 commits into
tonkeeper:mainfrom
Yny4ii:fix/carousel-scroll-jitter
Apr 30, 2026
Merged

fix(uikit): remove onWheel handler to prevent jitter on trackpad scroll#593
nstus merged 2 commits into
tonkeeper:mainfrom
Yny4ii:fix/carousel-scroll-jitter

Conversation

@Yny4ii

@Yny4ii Yny4ii commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

What's fixed

Fixed carousel scroll jitter and multi-slide skipping on Mac trackpads and mouse wheel input.

Problem

The carousel was incorrectly reacting to high-frequency wheel events, causing it to skip multiple slides per single user gesture and behave inconsistently across devices (especially macOS trackpads).

Root cause

A custom onWheel handler was directly translating every wheel event into a discrete slide navigation action:

Solution

Removed the onWheel handler entirely and delegated scroll behavior to the native browser scroll + carousel implementation.

Demo

Before After
2026-04-16.14.11.41.mov
2026-04-16.14.10.52.mov

@Yny4ii Yny4ii force-pushed the fix/carousel-scroll-jitter branch from 288f164 to be06d0d Compare April 16, 2026 11:42
@nstus nstus merged commit cba0928 into tonkeeper:main Apr 30, 2026
1 of 9 checks passed
@nstus nstus mentioned this pull request May 4, 2026
28 tasks
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.

2 participants