fix: drag image resizer position error #567

This commit is contained in:
Hufe921
2024-05-15 21:37:13 +08:00
parent 2738d3ae4c
commit 1e669a6f03
@@ -172,12 +172,10 @@ export class Previewer {
if (this.curElement) {
this.curElement.width = this.width
this.curElement.height = this.height
this.draw.render({ isSetCursor: false })
this.drawResizer(
this.curElement,
this.curPosition,
this.previewerDrawOption
)
this.draw.render({
isSetCursor: true,
curIndex: this.curPosition?.index
})
}
// 还原副作用
this.resizerImageContainer.style.display = 'none'