Browse Source

Make keyboard controls work in Safari.

tags/2.0.1
Matthew Petroff 10 years ago
parent
commit
95281b3eff
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      VERSION
  2. +2
    -2
      src/js/pannellum.js

+ 1
- 1
VERSION View File

@@ -1 +1 @@
2.0
2.0.1

+ 2
- 2
src/js/pannellum.js View File

@@ -345,7 +345,7 @@ function changeKey(keynumber, value) {
}
if (keyChanged && value) {
if (performance.now()) {
if (typeof performance !== 'undefined' && performance.now()) {
prevTime = performance.now();
} else {
prevTime = Date.now();
@@ -356,7 +356,7 @@ function changeKey(keynumber, value) {

function keyRepeat() {
var newTime;
if (performance.now()) {
if (typeof performance !== 'undefined' && performance.now()) {
newTime = performance.now();
} else {
newTime = Date.now();


Loading…
Cancel
Save