I'm using PhoneGap to create an iPhone application. I'm trying to use iScroll for the zoom functionality. But I'm having a problem where I cannot scroll until I zoom in on the div. Once I un-zoom the div then it's automatically scrolled back to the top.
I've looked at the following two threads that I thought would help but neither solution worked for my situation.
I have a div that has images added to it after an AJAX call. I created a div wrapper around it that should be zoomable. The code for this is as followed
<div id = 'zoom-wrapper'>
<div id="historyResponse"></div>
</div>
I have a JS function called showHistory() that has an AJAX call. On success images are added to the historyResponse div using .append().
After reading the two threads mentioned above I tried added things like myScroll.refresh() or destroying then recreating myScroll at the end of the JS function showHistory() but nothing fixed my problem.
Are there any other things I can try to fix this problem?
Thanks in advance!