Skip to content

Issue with Right-Click Behavior on Scrollbar #51

@c0d3-ninja

Description

@c0d3-ninja

I've encountered a bug. When right-clicking the scrollbar and subsequently moving the mouse, the scrollbar starts scrolling. This behavior is unexpected as right-click interactions typically do not involve scrolling functionality. The expected behavior would be for the scrollbar to remain static during right-click actions.

Steps to Reproduce:

  1. Right-click on the scrollbar.
  2. Single click outside to hide context menu
  3. Move the mouse without clicking any buttons

Expected Behavior:
The scrollbar should not move or scroll when right-clicked and dragged.

Actual Behavior:
The scrollbar starts scrolling when it is right-clicked and the mouse is moved.

Environment: MacOs

Version of react-custom-scrollbars-2 used: Latest
Browser and Version: Version 120.0.6099.216 (Official Build) (arm64)
OS and Version: Mac OS 14.2.1

I have attached a screen record below.

right.click.issue.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions