scrollbar-style

4.0.1 • 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.

const scrollbarStyle = require('scrollbar-style')

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

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

/scrollbar-style/

    Package Sidebar

    Install

    npm i scrollbar-style

    Weekly Downloads

    116

    Version

    4.0.1

    License

    ISC

    Unpacked Size

    8.63 kB

    Total Files

    9

    Last publish

    Collaborators

    • benogle
    • nathansobo
    • kevinsawicki
    • zcbenz
    • atom-team
    • kashef