sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
807 stars 39 forks source link

Resizing the window at the right edge can cause the scrollbar to become stuck in a drag-like state #6142

Closed frou closed 7 months ago

frou commented 1 year ago

Description of the bug

When using the mouse to horizontally resize the ST window via the right edge (the mouse cursor changes to the combined left+right arrowhead), the scrollbar can become activated and subsequently acts as if it's being dragged, even though the mouse button is no longer being held down.

See this video. In it, I'm just intending to resize the window, not do anything related to scrolling.

https://github.com/sublimehq/sublime_text/assets/172663/4cf4f126-5564-4e52-bf03-41d6c8a29c79

Steps to reproduce

  1. Start ST in safe mode
  2. Open a file with more than a screen's worth of content.
  3. Grab the right edge of the window to start horizontally resizing it. There seems to be a couple of pixels worth of area where both the left+right arrowhead mouse cursor is shown and the scrollbar thumb lights up. This is when the bug will happen.
  4. Finish horizontally resizing the window and let go of the mouse button.

Expected behavior

Nothing further

Actual behavior

Mouse movement reveals that the scrollbar is acting as if it's being dragged

Sublime Text build number

4152

Operating system & version

macOS Ventura 13.6

OpenGL context information

OpenGL Context Information:
  GL API Version: 4.1 ATI-4.14.1
  GLSL Version: 4.10
  Vendor: ATI Technologies Inc.
  Renderer: AMD Radeon RX Vega 64 OpenGL Engine
keith-hall commented 1 year ago

Apparently there's a few bugs with resizing the window on Mac: https://github.com/sublimehq/sublime_text/issues/1550

BenjaminSchaaf commented 7 months ago

Fixed in build 4170.

frou commented 7 months ago

Thanks so much for fixing this. It was a papercut I encountered often.