simplebar
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -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/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
43890
17
189