When a button is pressed and the pointer is dragged onto another button, the second button's enter event goes to the grabbing button, so its hover state stays false and later clicks on it are ignored. Check whether the release event's source is inside the button instead. Fixes #14019