From 7796dd0dcb0aebbc577b18aa6aac82cf1612b8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 25 Jan 2018 14:25:52 +0100 Subject: [PATCH] don't trigger render in `position` watch function --- src/components/Player.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 13bbbfa..63aef16 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -68,7 +68,7 @@ }, 0) }, position: function () { - if (this.image === null) return + if (this.playing || this.image === null) return this.tmp_ctx = this.$refs.canvas.getContext('2d') this.$render() }