Dismiss drag function should now work on any screen