Restore pan mode after 5 seconds of inactivity