Rida F’kih wanted a web tab bar that felt as responsive as a native iPhone control. In his iOS Safari setup, the usual JavaScript animation and pointer-event paths ran at 60 Hz on a 120 Hz display. He found a faster route for both input and drawing.

  • Input: A native scroll container supplies drag position, momentum and bounce through the browser’s compositor. Polling faster barely helped; F’kih had to get Safari to deliver more distinct scroll positions.
  • Drawing: OffscreenCanvas let the demo submit canvas frames without waiting for Safari’s normal page redraw. Faster input alone would still have left it drawing at 60 FPS.
  • Measurement: In a three-second drag filmed on an iPhone 18 Pro, the demo averaged 118 FPS. The pointer-event version held at 60 FPS.

Measure what reaches the screen before speeding up your event loop. Native scrolling is useful on its own; the full canvas trick depends on WebKit timing that Apple can change, so keep a fallback.