Thinkmill / reacteu-app

ReactEurope TouchstoneJS Mobile App
http://thinkmill.com.au/react-europe
MIT License
161 stars 52 forks source link

Question: production cordova config? #4

Open Huxpro opened 9 years ago

Huxpro commented 9 years ago

Hey, One more question~

You guys use -webkit-overflow-scrolling: touch to implement all awesome inertia scroll, which is really bold, efficient and clever move. But when I build this app with default config.xml, the result is out of my expect: the whole app can be scrolled and the status bar overlays the webView :(

Some magic cordova config must be set in the production version config.xml like that, I guess

<preference name="DisallowOverscroll" value="true" />
<preference name="StatusBarOverlaysWebView" value="false" />

I actually wonder how magic happened by combined -webkit-overflow-scrolling: touch and cordova config, to make a web app so nice never before, thank you