Vandzelyak / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
0 stars 0 forks source link

Scrolling not working when content is an IFRAME #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I have a setup similar to this:
<div id=wrapper 
style="overflow:hidden;position:absolute;width:900px;height:700px">
  <div id=scroller style="position:relative;width:900px">
    <iframe id=sitecontent src="content.htm" width=900></iframe>
  </div>
</div>
In javascript:
- disable touchmove event on sitecontent frame thru preventDefault method
- call iScroll('scroller')

What is the expected output? What do you see instead?
Cannot scroll the content area with either 1 or 2-finger gesture.

What version of the product are you using? On what operating system?
Have tried with both 3.x and 4.x of iScroll, on iPad with iOS 4.

Please provide any additional information below.
the scroller DIV is positioned relative, not absolute, because when absolute is 
used the iframe content doesn't appear
I have also tried disabling touchmove at document level, and it made no 
difference

Original issue reported on code.google.com by chris.go...@gmail.com on 6 Oct 2011 at 6:34

GoogleCodeExporter commented 8 years ago
oh, a bit more detail:
there is just one IFRAME on the webpage, and the blocks mentioned above pop up 
overtop of the main content of the page when a link is tapped. that link would 
contain the URL to be displayed in the popup iframe. URL is on the same domain 
as the main page.

Original comment by chris.go...@gmail.com on 6 Oct 2011 at 6:37