mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Tweaked RequestAnimationFrame.js and Detector.js.
This commit is contained in:
@@ -117,7 +117,8 @@ This code creates a camera, then creates a scene object, adds a bunch of random
|
||||
|
||||
function animate() {
|
||||
|
||||
requestAnimationFrame( animate ); // Include examples/js/RequestAnimationFrame.js for cross-browser compatibility.
|
||||
// Include examples/js/RequestAnimationFrame.js for cross-browser compatibility.
|
||||
requestAnimationFrame( animate );
|
||||
render();
|
||||
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ Detector = {
|
||||
|
||||
var html = [
|
||||
|
||||
'Sorry, your browser doesn\'t support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a><br/>',
|
||||
'<br/>',
|
||||
'Please try with',
|
||||
'<a href="http://www.google.com/chrome">Chrome 9+</a> /',
|
||||
'<a href="http://www.mozilla.com/en-US/firefox/all-beta.html">Firefox 4+</a> /',
|
||||
'<a href="http://nightly.webkit.org/">Safari OSX 10.6+</a>'
|
||||
'Sorry, your browser doesn\'t support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a><br/>',
|
||||
'<br/>',
|
||||
'Please try with',
|
||||
'<a href="http://www.google.com/chrome">Chrome 9+</a> /',
|
||||
'<a href="http://www.mozilla.com/en-US/firefox/all-beta.html">Firefox 4+</a> /',
|
||||
'<a href="http://nightly.webkit.org/">Safari 10.6+</a>'
|
||||
|
||||
].join("\n");
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Provides requestAnimationFrame in a cross browser way.
|
||||
* @author paulirish / http://paulirish.com/
|
||||
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
|
||||
*/
|
||||
|
||||
if ( !window.requestAnimationFrame ) {
|
||||
|
||||
Reference in New Issue
Block a user