Skip to content

某种裁剪角度不对就会出现报错 Cannot read properties of undefined (reading '0')" #890

@Mrwangfan

Description

@Mrwangfan

版本:0.6.5
谷歌版本:141.0.7390.123
诉求:感谢大佬兼容下真的会出现
this.cropOffsertX = e.offsetX ? e.offsetX : e.touches[0].pageX - this.$refs.cropper.offsetLeft;
this.cropOffsertY = e.offsetY ? e.offsetY : e.touches[0].pageY - this.$refs.cropper.offsetTop;
Image
Image

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