Skip to content
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

fix IE's script70 error #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dariocravero
Copy link

Whenever we scroll Readium tries to find the next visible media
overlay element to play.
The problem arises when the user changed the page and had scrolled
before. Some funny combination of things triggers the scroll handler to
run again and because it has a stale reference of the iframe's document
IE gives out with the script70 error message.
This commit unbinds the scroll handler before that can even happen,
i.e., when we are about to open a new page and rebinds it once its done.

May fix #162.

Whenever we scroll Readium tries to find the next visible media
overlay element to play.
The problem arises when the user changed the page and had scrolled
before. Some funny combination of things triggers the scroll handler to
run again and because it has a stale reference of the iframe's document
IE gives out with the `script70` error message.
This commit unbinds the scroll handler before that can even happen,
i.e., when we are about to open a new page and rebinds it once its done.

May fix readium#162.
@dariocravero
Copy link
Author

@nbeach, this might sort out readium/readium-js-viewer#295, would you mind giving it a go?

@jccr
Copy link
Member

jccr commented Oct 5, 2015

@dariocravero
Thanks for this. I can give it a go.

@dariocravero
Copy link
Author

Good stuff, let me know how it goes.

On Mon, Oct 5, 2015 at 5:03 PM Juan Corona notifications@github.com wrote:

@dariocravero https://github.com/dariocravero
Thanks for this. I can give it a go.


Reply to this email directly or view it on GitHub
#222 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Media Overlays playback does not continue when turning pages (Windows, IE cloud reader)
2 participants