Graphics 划线华为鸿蒙系统会出现Bug

~9{5G(LZ)HY7N%H})NZV

测试代码
const { ccclass, property } = cc._decorator;

@ccclass

export default class Test extends cc.Component {

private Mask: cc.Graphics = null;

private line_point: cc.Vec2[] = [];

onLoad(): void {

    this.Mask = this.node.getComponent(cc.Graphics);

    this.Mask.lineWidth = 20;

    this.Mask.strokeColor = new cc.Color().fromHEX("#f2a8a8");

    this.Mask.fillColor = new cc.Color().fromHEX("#f2a8a8");

}

start(): void {

    this.node.on(cc.Node.EventType.TOUCH_START, this.touch_start, this)

    this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touch_move, this)

    this.node.on(cc.Node.EventType.TOUCH_END, this.touch_end, this)

    this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.touch_end, this)

}

touch_start(event) {

    let pos = this.node.convertToNodeSpaceAR(event.getLocation());

    this.Mask.moveTo(pos.x, pos.y);

    this.line_point.push(cc.v2(pos.x, pos.y));

}

touch_move(event) {

    let pos = this.node.convertToNodeSpaceAR(event.getLocation());

    this.Mask.lineTo(pos.x, pos.y);

    this.line_point.push(cc.v2(pos.x, pos.y));

    this.Mask.stroke();

}

touch_end(event) {

}

}

目前只在华为手机测试出问题 三台华为都出现同样问题 Creator 2.4.8

这个好像一直有吧,需要一段一段的划线
每一段线都要调用 moveTo、lineTo、stroke()

其他手机没发现 很无奈

你好,能否告知一下鸿蒙系统手机的机型?