mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Merge pull request #103 from acdha/paranoid-requestanimationframe-polyfill
Paranoid requestAnimationFrame for antique Firefox
This commit is contained in:
commit
86a908a4de
@ -1662,7 +1662,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
|
||||
|
||||
// polyfill, when necessary
|
||||
if ( w.requestAnimationFrame ) {
|
||||
if ( w.requestAnimationFrame && w.cancelAnimationFrame ) {
|
||||
//we cant assign window.requestAnimationFrame directly to $.requestAnimationFrame
|
||||
//without getting Illegal Invocation errors in webkit so call in a
|
||||
//wrapper
|
||||
|
Loading…
x
Reference in New Issue
Block a user