Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplebar - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

3

package.json

@@ -16,3 +16,3 @@ {

"bugs": "https://github.com/grsmto/simplebar/issues",
"version": "2.4.1",
"version": "2.4.2",
"scripts": {

@@ -49,2 +49,3 @@ "start": "webpack-dev-server --inline",

"extract-text-webpack-plugin": "^1.0.1",
"jest": "^20.0.4",
"normalize.css": "^6.0.0",

@@ -51,0 +52,0 @@ "postcss-loader": "^0.13.0",

@@ -64,10 +64,4 @@ # SimpleBar [![npm package][npm-badge]][npm]

#### forceEnabled
#### wrapContent (deprecated)
By default SimpleBar is not enabled on floating scrollbars environments like on mobile or on mac OS. To force SimpleBar to be enabled, use this option.
Default value is `false`
#### wrapContent
By default SimpleBar requires minimal markup. When initialized it will wrap a `simplebar-content`element in a div with the class `simplebar-scroll-content`. If you prefer to include this wrapper element directly in your markup you can switch the default behaviour off by setting the `wrapContent` option to `false`:

@@ -79,2 +73,4 @@

:warning: this option is deprecated and shouldn't be needed anymore (just prepare your DOM as you want and it should work without having to use this option).
#### autoHide

@@ -141,4 +137,2 @@

This is best to use this rather than querying it via the DOM directly cause it avoids problem when the plugin is disabled (like on mobiles).
### Disable Mutation Observer

@@ -170,6 +164,2 @@ SimpleBar.removeObserver();

### Mobile support
Most of the mobile browsers have "floating" scrollbars. Also, they are not all currently supporting hardware acceleration on `overflow: auto` elements. So we decided to automatically disable SimpleBar when a "floating" scrollbar is detected. So mobile browsers will use native scrollbar seemlessly.
For example you will notice that it will use native scrollbar on mac OSX 10.8+ (when using trackpad) as the scrollbar is natively floating.
## 3. Demo

@@ -176,0 +166,0 @@ http://grsmto.github.io/simplebar/

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc