it can switch page when dragging, but still have bugs