Skip to content

Commit

Permalink
🐛 fix #139
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 6, 2022
1 parent 67f055f commit 4604d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/annotation/CanvasPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1001,14 +1001,14 @@ const handleTouchstart = event => {
} else if (!createContext && !annotationStore.delMode && !annotationStore.copyMode) {
const objectAnnotation = new ObjectAnnotation(mouseX, mouseY, 0, 0)
objectAnnotation.highlight = true
annotationList.value.push(objectAnnotation)
createContext = {
index: annotationList.value.length,
x: objectAnnotation.x,
y: objectAnnotation.y,
mousedownX: mouseX,
mousedownY: mouseY
}
annotationList.value.push(objectAnnotation)
}
} else if (annotationStore.mode === 'region' && preferenceStore.regions) {
// add point when creating
Expand Down

0 comments on commit 4604d73

Please sign in to comment.