fix: not allow change zone in continuous mode #201
Co-authored-by: Hufe921 <huangyunfeihufe@hotmail.com>
This commit is contained in:
@@ -620,6 +620,7 @@ export class Draw {
|
||||
this._disconnectLazyRender()
|
||||
this.header.recovery()
|
||||
this.footer.recovery()
|
||||
this.zone.setZone(EditorZone.MAIN)
|
||||
}
|
||||
this.render({
|
||||
isSubmitHistory: false,
|
||||
|
||||
@@ -3,9 +3,10 @@ import { LETTER_REG, NUMBER_LIKE_REG } from '../../../dataset/constant/Regular'
|
||||
import { CanvasEvent } from '../CanvasEvent'
|
||||
|
||||
function dblclick(host: CanvasEvent, evt: MouseEvent) {
|
||||
// 切换区域
|
||||
const draw = host.getDraw()
|
||||
const position = draw.getPosition()
|
||||
// 切换区域
|
||||
if (draw.getIsPagingMode()) {
|
||||
const positionContext = position.getPositionByXY({
|
||||
x: evt.offsetX,
|
||||
y: evt.offsetY
|
||||
@@ -14,6 +15,7 @@ function dblclick(host: CanvasEvent, evt: MouseEvent) {
|
||||
draw.getZone().setZone(positionContext.zone)
|
||||
return
|
||||
}
|
||||
}
|
||||
// 自动扩选文字
|
||||
const cursorPosition = position.getCursorPosition()
|
||||
if (!cursorPosition) return
|
||||
|
||||
Reference in New Issue
Block a user