Fullpage.js: How to scroll over iframe

Created on 20 Apr 2018  路  9Comments  路  Source: alvarotrigo/fullPage.js

Description

Scrolling while hovering over the iframe doesn't actually scroll the page.

Link to isolated reproduction with no external CSS / JS

https://jsfiddle.net/ens43v4o/17/

Steps to reproduce it

  1. Scroll down to second section
  2. Hover mouse over the iframe content
  3. Scroll up/down (doesn't work)

Working example (without fullpage.js)

https://jsfiddle.net/gjxxugfs/3/


The default behavior without fullpage.js works (can scroll while hovering over iframe). This makes me think that fullpage.js is doing something that's preventing it from working. Is there ANY way I can temporary turn off fullpage.js's scroll hijacking so that this example will still work?

Most helpful comment

@SergProduction @VictorChen
Try my solution: https://jsfiddle.net/th0LxLbv/2/ - seems it works.

All 9 comments

collided with this problem. I could not find a solution

@SergProduction I closed this because it's a duplicate of https://github.com/alvarotrigo/fullPage.js/issues/2229

Unfortunately... not sure if there is a workaround...

@SergProduction @VictorChen
Try my solution: https://jsfiddle.net/th0LxLbv/2/ - seems it works.

@webdevyaros no it doesn't? http://jsfiddle.net/q884Lv0a/26/

Hey Guys, simply use the <video> tag and direct urls from vimeo or youtube.. works perfect.

@AmanSahota I need to show an iframe of another website, not just a video

I found solution by JavaScript

https://codepen.io/t7team/pen/KOPqqV

The issue with @webdevyaros' solution is that you can't click anything under the .wrapper::after CSS pseudo element. I have a form in my iframe so it needs to be clickable and fp scrollable.

@kirkbross if it needs to be scrollable, then how are you suppose to decide if you want to scroll your iframe or the whole page?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukeCarlThompson picture LukeCarlThompson  路  4Comments

piaomiao picture piaomiao  路  5Comments

villain2 picture villain2  路  3Comments

anonet1 picture anonet1  路  3Comments

vanloc0301 picture vanloc0301  路  5Comments