Skip to main content
Navigation & Interface1 min read

Gestures: Swipe, Pull-to-Refresh and Zoom

Turn on native gestures in your website app: swipe back and forward, pull-to-refresh and pinch-to-zoom, with per-platform settings and colors.

Overview

Gestures make your website feel native: swiping to go back, pulling down to refresh, pinching to zoom. Open Interface › Gestures.

Swipe Gestures

Turn on Enable swipe gestures for back and forward navigation: swipe from the left edge to go back and from the right edge to go forward. An indicator appears when there is history to go to; set its background and icon colors for light and dark mode.

Pull-to-Refresh

Lets users refresh the current page by swiping down from the top of the screen. Turn it on or off for iOS and Android, and optionally set the Android icon color.

Turn it off for pages with their own pull gestures or infinite scroll that conflict with it.

Pinch-to-Zoom

Allows two-finger zooming within web content. Set it per platform. Keep it on if your site has small text or images users may want to enlarge; turn it off for app-like layouts that should not zoom.

Updates

Gesture settings are Instant Live Updates.

Tips

  • Swipe gestures rely on browser history. Single-page apps should update the history (history.pushState) when they change views.
  • If you also use a side drawer, users open it with the top bar's menu button; test both gestures on a real device.

Next steps