fix: beginPath before drawing drag indicator (#9364)
Fixes [BS-2238](https://linear.app/affine-design/issue/BS-2238/frame-套一个-mindmap-,拖动行为不可用)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
||||||
import {
|
import {
|
||||||
NODE_HORIZONTAL_SPACING,
|
NODE_HORIZONTAL_SPACING,
|
||||||
NODE_VERTICAL_SPACING,
|
NODE_VERTICAL_SPACING,
|
||||||
@@ -191,6 +190,7 @@ export class MindMapIndicatorOverlay extends Overlay {
|
|||||||
ctx.fillStyle = color;
|
ctx.fillStyle = color;
|
||||||
ctx.lineWidth = 3;
|
ctx.lineWidth = 3;
|
||||||
|
|
||||||
|
ctx.beginPath();
|
||||||
ctx.roundRect(targetPos.x, targetPos.y, targetPos.w, targetPos.h, 4);
|
ctx.roundRect(targetPos.x, targetPos.y, targetPos.w, targetPos.h, 4);
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user