2

I am using Phonegap 2.5 for the iPhone application.I am also using query mobile. Its giving scrolling issue when I use -webkit-overflow-scrolling: touch;

Here are the screenshots:

enter image description here

and after scrolling content disappears:

enter image description here

Header and footer are fixed. this is the code I am using for the div which is scrolling div:

<div style="position: absolute; width: 100%; height: 75%; margin-top: 10%; overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-transform: translate3d(0,0,0);">
    <!--some content -->
</div>

when I remove -webkit-overflow-scrolling: touch; the content doesn't disappear but it doesn't scroll like native. I can't figure it out what is the problem?

UPDATE: It works fine on ios 6 simulator. screenshots are of iOS 5 device.

3
  • Try out this: -webkit-transform: translateZ(0); Maybe it is somehow related to this problem: stackoverflow.com/q/8110580/1307609 Commented Jun 6, 2013 at 20:08
  • I have found overflow touch is buggy on IOS 5. Commented Jun 7, 2013 at 1:02
  • @Zsolt Okay I will try it Commented Jun 7, 2013 at 5:44

1 Answer 1

1

Couldn't see your html markup though, try to call this script...

Give id to your popup div.

HTML

<div id="yourBox" style="">    
    <!--some content -->    
</div>

JQUERY

$(document).ready(function(){
    $('#yourBox').trigger("create");
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.