bug fixes to ability to hide presented view controller by dragging chat head away. First fix was to change the state back to normal after the presented view controller was hidden and the second was to correctly determine which edge the view should be snapped back to.