Comments (2)
@tharakabimal there's a description of the touchScrollTarget
property in the readme https://github.com/jossmac/react-scrolllock#props
You can also checkout the example usage from the demo https://github.com/jossmac/react-scrolllock/blob/master/examples/src/index.js#L60
@andycanderson thank you for responding to this 🙂
from react-scrolllock.
are you passing in the ref to the scrollable area on the modal?
e.g. <ScrollLock touchScrollTarget={this.scrollArea} />
from react-scrolllock.
Related Issues (20)
- css transform: translateX not working with react-scrolllock HOT 2
- Support for react v18 HOT 2
- Can we swipe the images HOT 3
- Page scrolls to the top when scrollLock is active HOT 3
- TouchScrollable doesn't work on iOS 9 and below HOT 1
- Is it possible to scroll lock the html element? HOT 1
- v
- Release 4.0.2 with TS support HOT 1
- Can't scroll elements designated as scrollable (Firefox for Android) HOT 4
- TouchScrollable event listener error HOT 2
- Clobbering of `ref` when using TouchScrollable HOT 6
- Does it works with hooks? HOT 2
- Changelog? HOT 1
- Range input inside <TouchScrollable/> is not updating on drag in mobile
- Error triggered when TouchScrollable children is null
- Add engines to package.json
- iOS Safari: Body is not locked when scrolling inside iframe
- On mobile, scrolling locked even within modal HOT 3
- isActive is not delayed on load HOT 2
- React 17 support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-scrolllock.