Comments (3)
I think the following solution accounts for the caveat I talked about in the last post:
body:{
overflow: isOpen ? 'auto' : 'hidden',
maxHeight: window.innerHeight,
backgroundColor: 'white',
...this.props.bodyStyle
}
Not sure how this could impact the rendering performance, but it's working fine in my Moto G 2nd generation.
from react-swipeable-bottom-sheet.
I added the property 'scrollOnWindowOverflow' which should do the trick.
from react-swipeable-bottom-sheet.
Awesome!
@manufont I found one more thing. When the main page already has a scrollbar, the bottom sheet gets a second one. As the bottom sheet is covering the whole screen, no interaction with the main page is expected and therefore it shouldn't be scrollable in this situation.
from react-swipeable-bottom-sheet.
Related Issues (20)
- Any CSS required to make it work? HOT 4
- [Issue] Please update react-swipeable-views dependency HOT 1
- Cordova? HOT 1
- How to fix header of the sheet? HOT 1
- horizontal swiping
- Scroll Bug on Controlled Component with Touch event HOT 3
- Build errors and Typescript changes
- Content overflowing through left of screen HOT 1
- Cannot scroll up on iPhones HOT 16
- Accessibility: Content in BottomSheet is hidden from screen readers
- how implement with three mode HOT 1
- Unmount after exit
- Can't close by dragging with a mouse HOT 1
- Could not resolve dependency
- Error on setState() on an unmounted component inside HeightUpdater HOT 1
- Two scrollbars HOT 2
- Wrong scroll offset after closing HOT 6
- Add class to body when open HOT 4
- Question on how to extend HOT 1
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-swipeable-bottom-sheet.