compiler-explorer / compiler-explorer/compiler-explorer
[BUG]: Release of left mouse button is considered a click
- Dominant language
- TypeScript
- Stars
- 19.1k
- Forks
- 2.1k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 67
Description
### 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
Contributor guide
Assessment
This issue has not been assessed yet.