fixes

- layout scale animation now always starts at scale=0
- layout getting broken on close fixed
- layout drag now doesnt break when mouse leaves window