#528·lenis

Scroll and autoscroll conflict

Author: mihaicosminiCreated Jun 26, 2026Updated Aug 13, 2026
Labelsbugblockedbrowser issue

Describe the Bug

Attempting to scroll by pressing the middle mouse button (mouse3) while the page is still being scrolled by a previous mouse wheel action (or when a wheel scroll occurs during autoscroll) causes jitter and unexpected scroll behavior.

This happens because the browser's native autoscroll and the Lenis smooth-scroll animation have a conflict over the scroll position simultaneously.

Reproduction

1.middle-click to enter the browser's native autoscroll mode and move the mouse up/down. 2. Scroll the mouse wheel while native autoscroll is still active.

Expected Behavior

The page should continue to scroll smoothly using the native autoscroll mechanism. Any wheel events triggered during autoscroll should either be ignored or handled cleanly without causing the scroll position to jitter, jump back and forth, or conflict with the smooth-scroll engine.

Actual Behavior

The scroll jumps back and forth, resulting in a glitchy effect.

https://github.com/user-attachments/assets/3bdccb8b-941c-4dd2-aa51-3109423f62c7

Environment

  • Package version: 1.3.25
  • Framework / version: Vanilla JS / React / Any
  • Browser / OS: Windows (Chrome, Edge, Firefox, etc.)

Source: darkroomengineering/lenis