Ios+c2: can I disable the elastic bounce effect?


#1
  1. export with cordova (construct 2 r244)
  2. using cocoon.io to make a build for ios (canvas+)
  3. run the app and try to drag the screen. Depends on orientation, it possible vertically or horizontally.
  • Expected result:
    game canvas must be static without any scrolling with elastic bound effect

How can I disable vertical scrolling & the elastic bounce effect for game that don’t require it? Please help


#2

For all who also faced with this issue:

add this in config.xml:
preference name=“DisallowOverscroll” value=“true”/
preference name=“UIWebViewBounce” value=“false” /

and also, better for games to add this in index.html:
{
overflow: hidden;
height:100%;
}


#3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.