-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iframe inside with content fixed height not getting scrolled using mouse wheel #651
Comments
+1 since I really find this annoying. |
Related to #322 fixed with the new iframehelper script (in dist folder) |
Hi Inuyaksa, thanks for the nice plugin! But It's not working for me when trying to iframe cross origin domain, im using jquery.nicescroll.iframehelper.js, showing this error in chrome: Uncaught DOMException: Blocked a frame with origin "" from accessing a cross-origin frame. at HTMLBodyElement.onwheel() onwheel @ jquery.nicescroll.iframehelper.js:33 Is it solved? Because for Jeeosch case were within the same domain. Thanks~ |
Hi, with content from other domains is a problem to resolve this issue. |
Thanks for the reply! Here is my testing site and code: This is the page using iframe: You can try to mouse hover and scroll the iframe content, the parent window won't scroll but the scroll work just fine when mouse hover outside the iframed content. This is the content of the iframe using jquery.nicescroll.iframehelper.js: |
Also having this with a youtube embed. |
Youtube use iframes, then wheel events has stealed from iframe undetectable from javascript on page. |
sonans202 Let me give you a try to fix it: insted of using iframe use div: <style> div.scroll { overflow-y: auto; } div class="scroll" > div class="content" > print the html code´s other page here. I use php |include|. there are many ways /div>/div> It helps my using other page´s content along nicescroll In web chrome: OK!! In mobile chrome: OK!! But when has overflow bar, due to div class="content" > overflows div class="scroll" >´s max-height, it changes:
In web chrome: OK!!
In mobile chrome: :-(
|
referring to:
This is a weird bug but all custom scroll plugins like nicescroll , perfectscrollbar , or even jScrollPane have the same issue , whenever an iframe is embedded with the container to be scrolled , the iframe never listens to mouse wheel event neither touch swipe events ( to scroll on mobile devices ) , searched everywhere to find a solution seems that people have submitted issues on plugins pages , but no one realised that it is a universal bug not a bug from the plugin itself.
http://stackoverflow.com/questions/27912728/firefox-iframe-custom-scroll-bug
The text was updated successfully, but these errors were encountered: