解决鼠标移出移入画布后笔刷指示器丢失问题

This commit is contained in:
李志鹏
2025-09-29 10:46:27 +08:00
parent f177c9cf5a
commit 42f4ca0048

View File

@@ -391,6 +391,9 @@ export class BrushIndicator {
this._mouseEnterHandler = (e) => {
if (this._shouldShowIndicator()) {
this.show(e.e);
const currentVpt = this.canvas.viewportTransform;
this.staticCanvas.setViewportTransform([...currentVpt]);
this.staticCanvas.renderAll();
}
};