Kaynağa Gözat

Remove `requestAnimationFrame` shim, dropping support for some older browsers.

tags/2.5.0
Matthew Petroff 5 yıl önce
ebeveyn
işleme
1c6c26fd48
4 değiştirilmiş dosya ile 4 ekleme ve 38 silme
  1. +4
    -13
      readme.md
  2. +0
    -22
      src/js/RequestAnimationFrame.js
  3. +0
    -1
      src/standalone/pannellum.htm
  4. +0
    -2
      utils/build/build.py

+ 4
- 13
readme.md Dosyayı Görüntüle

@@ -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:



+ 0
- 22
src/js/RequestAnimationFrame.js Dosyayı Görüntüle

@@ -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 );

};

} )();

}

+ 0
- 1
src/standalone/pannellum.htm Dosyayı Görüntüle

@@ -16,7 +16,6 @@
</noscript>
</div>
<script type="text/javascript" src="../js/libpannellum.js"></script>
<script type="text/javascript" src="../js/RequestAnimationFrame.js"></script>
<script type="text/javascript" src="../js/pannellum.js"></script>
<script type="text/javascript" src="standalone.js"></script>
</body>


+ 0
- 2
utils/build/build.py Dosyayı Görüntüle

@@ -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('<link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/>','<style type="text/css">' + standalone_css + '</style>')
html = html.replace('<script type="text/javascript" src="../js/libpannellum.js"></script>','')
html = html.replace('<script type="text/javascript" src="../js/RequestAnimationFrame.js"></script>','')
html = html.replace('<script type="text/javascript" src="../js/pannellum.js"></script>','<script type="text/javascript">' + standalone_js + '</script>')
html = html.replace('<script type="text/javascript" src="standalone.js"></script>','')
html = html.replace('<link type="text/css" rel="Stylesheet" href="standalone.css"/>', '')


Yükleniyor…
İptal
Kaydet