M
M
MrGaunt2015-05-21 14:24:57
HTML
MrGaunt, 2015-05-21 14:24:57

Why does an iframe interfere with page scrolling in Firefox?

When I insert, say, a slideshow through an iframe into a page, when I access the site through Firefox and hover the mouse over the slideshow (the cursor is within the iframe), the page will not scroll with the mouse wheel. This "feature" causes great inconvenience. How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2015-05-21
@Petroveg

Obviously, either make the content of the document loaded in the iframe smaller than the viewport of its root element, or disable scrolling in it:
CSS (in the loaded document)

html {
  overflow:hidden
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question