npm

Check out our latest tech talk, "JavaScript Supply Chain Security," presented by VP of Security, Adam Baldwin.Watch it here »

scrollbar-style

3.2.0 • Public • Published

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)

install

npm i scrollbar-style

Downloadsweekly downloads

464

version

3.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability