compiler-explorer
compiler-explorer copied to clipboard
[BUG]: Release of left mouse button is considered a click
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
- Start selecting text in the code editor or assembly output by holding LMB.
- While holding LMB, move the cursor over something clickable (e.g. quick bench button or font size drop-down).
- Release LMB while cursor is over something clickable.
- 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