Cleaned up browser support for full-screen and pointer-locking in the Video component, and reduced the default scale factor for mouse movement events from 1.0 to 0.5, since modern screens are generally much higher resolution

This commit is contained in:
Jeff Parsons 2017-08-02 10:37:45 -07:00 committed by Jeff Parsons
commit a3c252bf99
24 changed files with 4060 additions and 4000 deletions

View file

@ -100,12 +100,7 @@ class Usr {
*/
static getTimestamp()
{
var date = new Date();
var padNum = function(n)
{
return (n < 10 ? "0" : "") + n;
};
return date.getFullYear() + "-" + padNum(date.getMonth() + 1) + "-" + padNum(date.getDate()) + " " + padNum(date.getHours()) + ":" + padNum(date.getMinutes()) + ":" + padNum(date.getSeconds());
return Usr.formatDate("Y-m-d H:i:s");
}
/**