Skip to content

Commit a9774bb

Browse files
committed
fix: q-gallery-carousel not work in ios8 quasarframework#1859
1 parent fd57be0 commit a9774bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/animate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let ids = {}
55

66
export function start ({name, duration = 300, to, from, apply, done, cancel, easing}) {
77
let id = name
8-
const start = performance.now()
8+
const start = (new Date()).getTime()
99

1010
if (id) {
1111
stop(id)
@@ -16,7 +16,7 @@ export function start ({name, duration = 300, to, from, apply, done, cancel, eas
1616

1717
const delta = easing || linear
1818
const handler = () => {
19-
let progress = (performance.now() - start) / duration
19+
let progress = ((new Date()).getTime() - start) / duration
2020
if (progress > 1) {
2121
progress = 1
2222
}

0 commit comments

Comments
 (0)