smooth-scroll
Smooth scroll of text-editor by mouse & keybord
asiloisad 199 0 1.8.2 MIT GitHub
  • Made for Pulsar!

    This package was written specifically for Pulsar and did not exist in the Atom package repository.

smooth-scroll

Smooth scrolling for text editors via mouse and keyboard. Uses requestAnimationFrame for butter-smooth animations with alternative speed and horizontal scroll modes.

demo

Features

  • Smooth animation: Uses requestAnimationFrame instead of CSS.
  • Mouse wheel: Scroll with configurable modifiers.
  • Keyboard scrolling: PageUp/PageDown with customizable step.
  • Multi-editor sync: Scroll all visible editors with Ctrl.
  • Horizontal scroll: Hold Shift to scroll horizontally.

Installation

To install smooth-scroll search for smooth-scroll in the Install pane of the Pulsar settings or run ppm install smooth-scroll. Alternatively, you can run ppm install asiloisad/pulsar-smooth-scroll to install a package directly from the GitHub repository.

Commands

Scrolling text-editor is done by mouse wheel. Modifiers can be used:

  • Ctrl: scroll all visible text editors,
  • Alt: use alternative speed setting,
  • Shift: change scroll to horizontal direction.

Commands available in atom-text-editor:not([mini]):

  • smooth-scroll:scroll-up: (Alt+PageUp) scroll current text-editor up,
  • smooth-scroll:scroll-up-all: scroll all pane-active text-editor up,
  • smooth-scroll:scroll-down: (Alt+PageDown) scroll current text-editor down,
  • smooth-scroll:scroll-down-all: scroll all pane-active text-editor down,
  • smooth-scroll:increase-step: (Alt+Shift+PageUp) increase scroll step of scroll-up and scroll-up-all,
  • smooth-scroll:decrease-step: (Alt+Shift+PageDown) decrease scroll step of scroll-down and scroll-down-all,
  • smooth-scroll:scroll-to-cursor: scroll current text-editor to last added cursor.

Contributing

Got ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback's welcome!