We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db0943 commit bc4babbCopy full SHA for bc4babb
src/components/QrcodeReader.vue
@@ -200,13 +200,9 @@ export default {
200
},
201
202
onLocate (location) {
203
- location = this.normalizeLocation(location)
204
-
205
- if (this.repaintTrack !== null) {
+ if (this.trackRepaintFunction !== null) {
206
this.repaintTrack(location)
207
}
208
209
- this.$emit('locate', location)
210
211
212
/**
@@ -233,6 +229,8 @@ export default {
233
229
234
230
235
231
repaintTrack (location) {
232
+ location = this.normalizeLocation(location)
+
236
const canvas = this.$refs.trackingLayer
237
const ctx = canvas.getContext('2d')
238
0 commit comments