瀏覽代碼

Make keyboard controls work in Safari.

tags/2.0.1
Matthew Petroff 10 年之前
父節點
當前提交
95281b3eff
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      VERSION
  2. +2
    -2
      src/js/pannellum.js

+ 1
- 1
VERSION 查看文件

@@ -1 +1 @@
2.0
2.0.1

+ 2
- 2
src/js/pannellum.js 查看文件

@@ -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…
取消
儲存