navigation by drag works correctly