Moved location logic to location_in_view

https://github.com/appium/appium/issues/1126