Skip to content

bacadra/pulsar-smooth-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smooth-scroll

Smooth scroll of text-editor by mouse & keybord. It's provided via requestAnimationFrame instead of CSS. Alternative scroll mode (different speed) and horizontal scroll mode included.

demo

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 bacadra/pulsar-smooth-scroll to install a package directly from the Github repository.

Commands

Scrolling text-editor by mouse wheel:

  • MouseWheel: vertical page scrolling
  • Alt-MouseWheel: vertical page scrolling (alternative)
  • Shift-MouseWheel: horizontal page scrolling
  • Alt-Shift-MouseWheel: horizontal page scrolling (alternative)

In atom-text-editor:not([mini]) there are available commands:

  • smooth-scroll:scroll-up: (default Alt-PageUp) scroll current text-editor up
  • smooth-scroll:scroll-down: (default Alt-PageDown) scroll current text-editor down
  • smooth-scroll:increase-step: (default Ctrl-Alt-PageUp) increase scroll step of scroll-up
  • smooth-scroll:decrease-step: (default Ctrl-Alt-PageDown) decrease scroll step of scroll-down
  • 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!

About

Smooth scroll of text-editor by mouse & keybord

Resources

License

Stars

Watchers

Forks