Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeburden/webkit-touch-scroll-fix
Fixes the iOS 11.3 bug that makes touch events cause the window to scroll. This can be an issue for drag and drop libraries.
https://github.com/jakeburden/webkit-touch-scroll-fix
Last synced: 1 day ago
JSON representation
Fixes the iOS 11.3 bug that makes touch events cause the window to scroll. This can be an issue for drag and drop libraries.
- Host: GitHub
- URL: https://github.com/jakeburden/webkit-touch-scroll-fix
- Owner: jakeburden
- Created: 2018-11-27T22:24:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T22:30:16.000Z (about 6 years ago)
- Last Synced: 2024-12-08T15:26:53.208Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webkit-touch-scroll-fix
> Fixes the [iOS 11.3 bug](https://bugs.webkit.org/show_bug.cgi?id=184250) that makes touch events cause the window to scroll. This can be an issue for drag and drop libraries.
This fix was taken directly from a pull request in [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd/pull/416/files). I thought it might be useful for it to be its own package.
## Usage
```js
const webkitHack = require('webkit-touch-scroll-fix')const onDrag = (e) => {
webkitHack.preventTouchMove()
}
const onDragStop = (e) => {
webkitHack.releaseTouchMove()
}
```## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install webkit-touch-scroll-fix
```## License
MIT