New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remove-ios-bounce

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-ios-bounce - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

package.json
{
"name": "remove-ios-bounce",
"version": "1.0.3",
"description": "Remove iOS bounce by Touch evnet listener and setting element's scorllTop/scrollLeft attribute.",
"version": "1.0.4",
"description": "Remove iOS bounce by Touch evnet listener and setting element's scorllTop&scrollLeft attribute.",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -1,4 +0,6 @@

# clear-bounce
Remove iOS bounce by Touch evnet listener and css-Translate.
# remove-ios-bounce
Remove iOS bounce by Touch evnet listener and settting scrollTop&scrollLeft attributes.
<p>SUGGEST: <a href="https://github.com/yource/bounce-pro" traget="_blank" >bounce-pro</a></p>
## Installing

@@ -14,7 +16,14 @@ Using npm:

## Example
remove bounce effects on body:
```
import {removeBodyBounce} from 'remove-ios-bounce';
removeBodyBounce();
```
remove bounce effects on other elements:
```
import {RemoveBounce} from 'remove-ios-bounce';
/**
* new ClearBounce(containerElement, onlyIOS)
* new RemoveBounce(containerElement, onlyIOS)
* @param:containerElement, required

@@ -24,12 +33,7 @@ * @param:onlyIOS, Boolean, not required(defalut false). TRUE means the function will work on iOS only.

const bounceCtrl = new RemoveBounce( document.getElementById('container'));
// After the containerElement is rendered, perform initialization.
const bounceCtrl = new RemoveBounce(document.getElementById('container'));
// remove event listener by destory funciton
// Before the containerElement is removed, clear event listener by destory function.
bounceCtrl.destory();
```
```
import {removeBodyBounce} from 'remove-ios-bounce';
/**
* Use this function to remove "bounce" effects on body
**/
```
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