Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
atomPublic archive

About

A node module to detect the scroller style ("overlay" or "legacy") on OS X

Resources

Code of conduct

Contributing

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

Repository files navigation

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Scrollbar Style Build Status

This package detects the preferred scroller style for Atom on OS X using the +preferredScrollerStyle method on NSScroller. For compatibility, this library always returns "legacy" on Windows and Linux.

const scrollbarStyle = require('scrollbar-style')

const style = scrollbarStyle.getPreferredScrollbarStyle()
console.log(style) // ==> 'legacy' or 'overlay'

scrollbarStyle.onDidChangePreferredScrollbarStyle((newStyle) => {
  console.log('style changed', newStyle)
})

About

A node module to detect the scroller style ("overlay" or "legacy") on OS X

Resources

Code of conduct

Contributing

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages