iframe content scroll issue
See original GitHub issueiframe content doesn’t scroll properly when touch is initiated, eg, in the center of the content. It will scroll if touch is initiated on the left or right edge of the content. Not sure if this is related to closed issue iframes block scrolling #306
.
I’m using Ionic v1.0.1-beta, Cordova v3.4.1-0.1.0, iOS 7.1 .
eg, I replaced the tab-dash.html
content, generated via ionic start myApp tabs
, with:
<ion-view title="Dashboard">
<ion-content scroll="true" class="has-header padding">
<h1>Dashboard0</h1>
<iframe src="http://xkcd.com" style="width:100%;height:100%"></iframe>
</ion-content>
</ion-view>
Issue Analytics
- State:
- Created 9 years ago
- Comments:23 (3 by maintainers)
Top Results From Across the Web
Embedded iframe not scrolling - Stack Overflow
No matter what I try I cannot get the iframe to scroll using the mouse scroll wheel. If you have your cursor on...
Read more >The craziness of iframe's “Scrolling” attribute on Webkit browsers
If you familiar with iframe you probably familiar with its attribute scrolling . In short, Indicates when the browser should provide a scrollbar...
Read more >You can't scroll when your mouse is over an iframe #205
Hello. Describe the bug. You can't scroll when your mouse is over an iframe. To Reproduce Steps to reproduce the behavior:.
Read more >Bug while trying to scroll an iframe content using the mouse ...
When I try to scroll an iframe content by using the mouse scroll wheel it also scroll the entire external page. This behavior...
Read more >Content inside iframe scrollable - WordPress.org
Hi,. I use fancybox to open page content in an iframe, but the issue is when the content is larger than screen size...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 @jorgecasar ! Thank you
This made my day:
I had the same issue and I fixed with this example: https://github.com/alexgzhou/brandNewiCYL/commit/6d877424896394f78e7efaeccbbeddfb72b487a9
CSS:
HTML:
@JonathanAquino, about the YouTube iframes I guess it’s because the video catch the tap event. I recommend you to use directly the video iframe in the correct size, then you don’t have to do scroll. This is the full video url: https://www.youtube.com/v/{{videoId}}.