Fix clicking in flyout collapses flyout too soon
Prevent unnatural text selection when collapsing flyout