fix: cursor position error when scaling the page #434

pr675
Hufe921 2 years ago
parent acb0d3fc47
commit e03feb2102

@ -843,9 +843,11 @@ export class Draw {
p.style.marginBottom = `${this.getPageGap()}px`
this._initPageContext(this.ctxList[i])
})
const cursorPosition = this.position.getCursorPosition()
this.render({
isSubmitHistory: false,
isSetCursor: false
isSetCursor: !!cursorPosition,
curIndex: cursorPosition?.index
})
if (this.listener.pageScaleChange) {
this.listener.pageScaleChange(payload)

Loading…
Cancel
Save