Fixes the portrait dragging when the mouse leaves the button

(by harmonising with the main version)
Fixes  the Clock window disappearing when you leave a container