compiler-explorer icon indicating copy to clipboard operation
compiler-explorer copied to clipboard

[BUG]: Release of left mouse button is considered a click

Open Endilll opened this issue 2 years ago • 1 comments

Describe the bug

While selecting text in editors, release of LMB to stop selecting text is considered a click by other UI elements.

Steps to reproduce

  1. Start selecting text in the code editor or assembly output by holding LMB.
  2. While holding LMB, move the cursor over something clickable (e.g. quick bench button or font size drop-down).
  3. Release LMB while cursor is over something clickable.
  4. Observe buttons clicking and drop-downs dropping down.

Expected behavior

Buttons not clicking, drop-downs not dropping down. More seriously though, I think clickable elements should ignore LMB release if corresponding LMB press didn't happen over them.

Reproduction link

Not applicable

Screenshots

Not applicable

Operating System

No response

Browser version

Firefox 120

Endilll avatar Nov 29 '23 18:11 Endilll

This looks like a firefox-specific issue that others have encountered before (1, 2, 3) Doesn't mean it's not fixable, but it probably won't be easy.

OfekShilon avatar Nov 30 '23 15:11 OfekShilon