File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/vrender-components/src/brush Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ export class Brush extends AbstractComponent<Required<BrushAttributes>> {
72
72
* 3. 如果是绘制状态: 标记绘制状态 & 标记正在绘制的mask & 清除之前的mask & 添加新的mask
73
73
*/
74
74
private _onBrushStart = ( e : FederatedPointerEvent ) => {
75
+ if ( this . _outOfInteractiveRange ( e ) ) {
76
+ return ;
77
+ }
75
78
const {
76
79
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES . updateTrigger ,
77
80
endTrigger = DEFAULT_BRUSH_ATTRIBUTES . endTrigger ,
@@ -398,7 +401,7 @@ export class Brush extends AbstractComponent<Required<BrushAttributes>> {
398
401
cursor : 'move' ,
399
402
pickable : false ,
400
403
...brushStyle ,
401
- opacity : hasMask ? ( brushStyle . opacity ?? 1 ) : 0
404
+ opacity : hasMask ? brushStyle . opacity ?? 1 : 0
402
405
} ) ;
403
406
brushMask . name = `brush-${ Date . now ( ) } ` ; // 用Date给mask唯一标记
404
407
this . _operatingMask = brushMask ;
You can’t perform that action at this time.
0 commit comments