Skip to content

Commit

Permalink
🐛 fix #139
Browse files Browse the repository at this point in the history
DavidZhang73 committed Mar 6, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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

0 comments on commit 4604d73

Please sign in to comment.