Skip to content

Commit

Permalink
fix: drag image resizer position error #567
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed May 15, 2024
1 parent 2738d3a commit 1e669a6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/editor/core/draw/particle/previewer/Previewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1e669a6

Please sign in to comment.