From 1c6c26fd48ec774d2a93f18ea0113546d58df825 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Mon, 17 Jun 2019 17:51:08 -0400 Subject: [PATCH] Remove `requestAnimationFrame` shim, dropping support for some older browsers. --- readme.md | 17 ++++------------- src/js/RequestAnimationFrame.js | 22 ---------------------- src/standalone/pannellum.htm | 1 - utils/build/build.py | 2 -- 4 files changed, 4 insertions(+), 38 deletions(-) delete mode 100644 src/js/RequestAnimationFrame.js diff --git a/readme.md b/readme.md index 9c83797..d7df7ad 100644 --- a/readme.md +++ b/readme.md @@ -27,25 +27,16 @@ Examples using both the minified version and the version in the `src` directory ## Browser Compatibility -Since Pannellum is built with recent web standards, it requires a modern browser to function. +Since Pannellum is built with web standards, it requires a modern browser to function. #### Full support (with appropriate graphics drivers): -* Firefox 10+ -* Chrome 15+ +* Firefox 23+ +* Chrome 24+ * Safari 8+ * Internet Explorer 11+ * Edge -#### Almost full support (no full screen): -* Firefox 4+ -* Chrome 9+ - -#### Partial support (WebGL support must first be enabled in preferences) - -* Safari 5.1+ - -#### No support: -Internet Explorer 10 and previous +The support list is based on feature support. As only recent browsers are tested, there may be regressions in older browsers. #### Not officially supported: diff --git a/src/js/RequestAnimationFrame.js b/src/js/RequestAnimationFrame.js deleted file mode 100644 index f07d729..0000000 --- a/src/js/RequestAnimationFrame.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Provides requestAnimationFrame in a cross browser way. - * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ - */ - -if ( !window.requestAnimationFrame ) { - - window.requestAnimationFrame = ( function() { - - return window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - window.oRequestAnimationFrame || - window.msRequestAnimationFrame || - function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) { - - window.setTimeout( callback, 1000 / 60 ); - - }; - - } )(); - -} diff --git a/src/standalone/pannellum.htm b/src/standalone/pannellum.htm index dc4c5f2..1ff38a2 100644 --- a/src/standalone/pannellum.htm +++ b/src/standalone/pannellum.htm @@ -16,7 +16,6 @@ - diff --git a/utils/build/build.py b/utils/build/build.py index 64cc64c..d5e3945 100755 --- a/utils/build/build.py +++ b/utils/build/build.py @@ -8,7 +8,6 @@ import urllib.parse JS = [ 'js/libpannellum.js', -'js/RequestAnimationFrame.js', 'js/pannellum.js', ] @@ -132,7 +131,6 @@ def build(files, css, html, filename, release=False): html = merge(html) html = html.replace('','') html = html.replace('','') - html = html.replace('','') html = html.replace('','') html = html.replace('','') html = html.replace('', '')