node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »


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.

scrollbarStyle = require 'scrollbar-style'
style = scrollbarStyle.getPreferredScrollbarStyle()
console.log(style) # ==> 'legacy' or 'overlay' 
scrollbarStyle.onDidChangePreferredScrollbarStyle (newStyle) ->
  console.log('style changed'newStyle)