react-custom-scrollbars-2 icon indicating copy to clipboard operation
react-custom-scrollbars-2 copied to clipboard

Issue with Right-Click Behavior on Scrollbar

Open c0d3-ninja opened this issue 1 year ago • 1 comments

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.

https://github.com/RobPethick/react-custom-scrollbars-2/assets/10485165/5f627b97-a80c-4376-b729-44f55449fb51

c0d3-ninja avatar Jan 19 '24 12:01 c0d3-ninja