Skip to content

jakeburden/webkit-touch-scroll-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

This fix was taken directly from a pull request in react-beautiful-dnd. I thought it might be useful for it to be its own package.

Usage

const webkitHack = require('webkit-touch-scroll-fix')

const onDrag = (e) => {
  webkitHack.preventTouchMove()
}
const onDragStop = (e) => {
  webkitHack.releaseTouchMove()
}

Install

With npm installed, run

$ npm install webkit-touch-scroll-fix

License

MIT

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published