gajus / brim

View (minimal-ui) manager for iOS 8.
http://gajus.com/sandbox/brim/demo/
Other
391 stars 41 forks source link

Problem overflow-y scroll and brim #9

Open MrAdrianS opened 9 years ago

MrAdrianS commented 9 years ago

Is it possible to somehow allow scrolling content inside div when use brim.js? I try add <div style="width:100%;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;">content</div> in brim-main, but scroll don't work..

efimovdk commented 9 years ago

@MrAdrianS Hello, we are experiencing the same problem. Did you find any solution to this?

hoanghuu commented 8 years ago

I think you can comment the line code e.preventDefault(); on touchmove event. OR you should change the if statement on touchmove event to: if (viewport.isMinimalView() && firstMove && e.target.tagName.toLowerCase() == "body") { e.preventDefault(); }