Runtian Wu

Software

MiddleClick-AutoScroll-Safari

Middle-click anywhere on a page to pan and scroll it in any direction — classic autoscroll, for Safari on macOS.

  • JavaScript
  • MIT License
  • v1.2.0
  • Updated Sep 2026
  • Two ways to use it — a quick click arms autoscroll hands-free (move the mouse, no button held); a press-and-drag stops the instant you let go.
  • Speed ramps with distance from where you clicked, with a small dead zone so you don't scroll by accident.
  • Axis snapping — near-straight drags lock to one axis so small hand tremor doesn't cause diagonal drift.
  • Scroll bubbling — if the scrollable box you started in (a sidebar, a code block) hits its own limit, autoscroll keeps going on the page behind it instead of getting stuck.

All software