ok to use `document` with swipe?