Skip to content

【bug】转屏或屏幕尺寸变化时动画不同步 #5

Description

@GarfieldJiang

图片、Canvas、Rect 在转屏时两两不同步。

简单的解决方式是,利用 Canvas 来画矩形,从而至少让后两者同步

    this.context.globalCompositeOperation = 'source-over'
    this.context.lineWidth = this.frameStrokeWidth
    this.context.strokeStyle = this.frameStrokeColor // frameStrokeColor 字段的类型需要修改。
    this.context.strokeRect(x, y, frameWidth, frameHeight)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions