Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

fix IE's script70 error#222

Open
dariocravero wants to merge 1 commit intoreadium:masterfrom
dariocravero:fix-script70-error
Open

fix IE's script70 error#222
dariocravero wants to merge 1 commit intoreadium:masterfrom
dariocravero:fix-script70-error

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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