mirror of
https://github.com/discourse/discourse.git
synced 2025-06-18 07:02:28 +08:00

On `mousedown` if the click is outside a cooked element cancel the `mousedown`/`mouseup` sequence and only rely on the `selectionchange` event. This change ensures a click on avatar for example will work, even if user is doing a rather slow click (meaning: the mousedown has been hold for more than 100ms).