we-plugin / we-cropper

微信小程序图片裁剪工具
https://we-plugin.github.io/we-cropper/#/
MIT License
2.16k stars 450 forks source link

即使页面disable true 裁剪框和图片一起还是会被手指拖动。 #54

Open zcSkr opened 6 years ago

zcSkr commented 6 years ago

Description

[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚] [Description of the issue] 即使页面设置了dissable: true. 代码用的wepy教程里面的源码, 裁剪框和图片你一起在ios下还是会被拖拽

Environment

Reproduce

[如何重现问题]

[How to reproduce the issue] 按照在wepy中使用we-cropper教程 源码复制

Observed Results

[实际表现] 裁剪框和图片一起被拖动 682945081896668678 605011315417184808 备注:黄色背景是修改了 canvas的背景色,证明被拖拽的不是页面和canvas [Observed Results]

Expected Results

[期望表现] 裁剪框不动,只有图片能被拖拽 [Expected Results]

Relevant Code / Logs

页面代码 `

` 组件源码 ` ` // TODO(you): code or logs ohere to reproduce the problem ```
zouysay commented 5 years ago

修改disable-scroll="{{disable}}"写法;写成disable-scroll