Facepunch / sbox-issues

180 stars 12 forks source link

[UI] Holding left mouse click while hovering over a div that has hover specified results in it not playing, even after letting go #7512

Open Retroeer opened 5 days ago

Retroeer commented 5 days ago

Describe the bug

If you hold left click, and then hover over a div with &:hover the &:hover doesn't play, even after you let go of left click. This also effects cursor: x; meaning you'll have the default cursor while hovering over something with cursor set aswell

To Reproduce

  1. Make a div with a &:hover
  2. On hover, transform: scale(0.5); or something else thats obvious
  3. Hold left click and hover over it
  4. Event will be skipped

Expected behavior

Hover should be playing, and cursor should be getting changed.

Media/Files

https://github.com/user-attachments/assets/470abbda-225c-4392-8cf8-2b6432553b3e

Additional context

This is probably just a razor thing which would be lame, but if it is fixable that would be nice