Skip to content

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

License

Notifications You must be signed in to change notification settings

pulsar-edit/scrollbar-style

 
 

Repository files navigation

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

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C++ 29.5%
  • Python 25.5%
  • JavaScript 25.2%
  • C++ 19.8%