Fix for pan swiping when already open

Fix for incorrectly resetting to top view when swiping left (/right)
when right (/left) view controller is already opened and top view
controller anchored to left (/right).