don't trigger render in `position` watch function

master
Tomáš Mládek 2018-01-25 14:25:52 +01:00 committed by Tomáš Mládek
parent a715d2a381
commit 7796dd0dcb
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}