readium-shared-js
readium-shared-js copied to clipboard
fix IE's script70 error
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.
@nbeach, this might sort out https://github.com/readium/readium-js-viewer/issues/295, would you mind giving it a go?
@dariocravero Thanks for this. I can give it a go.
Good stuff, let me know how it goes.
On Mon, Oct 5, 2015 at 5:03 PM Juan Corona [email protected] 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 https://github.com/readium/readium-shared-js/pull/222#issuecomment-145651984 .