we-cropper
we-cropper copied to clipboard
即使页面disable true 裁剪框和图片一起还是会被手指拖动。
Description
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚] [Description of the issue] 即使页面设置了dissable: true. 代码用的wepy教程里面的源码, 裁剪框和图片你一起在ios下还是会被拖拽
Environment
- Platform: [开发者工具/iOS/Andriod/Web] v1.02.1804120
- Platform version: [对应工具或者iOS或者Andriod的版本号] ios 10.3.2
- Wechat version: [微信版本号] 6.6.3
- we-cropper version: [在package.json里] 1.2.0
- other version: [如果是插件问题,请列出问题插件的版本号]
Reproduce
[如何重现问题]
[How to reproduce the issue] 按照在wepy中使用we-cropper教程 源码复制
Observed Results
[实际表现]
裁剪框和图片一起被拖动
备注:黄色背景是修改了 canvas的背景色,证明被拖拽的不是页面和canvas
[Observed Results]
Expected Results
[期望表现] 裁剪框不动,只有图片能被拖拽 [Expected Results]
Relevant Code / Logs
页面代码 `
组件源码 ` <canvas class="cropper" disable-scroll="{{disable}}" @touchstart="ts" @touchmove="tm" @touchend="te" style="width:{{width}}px;height:{{height}}px;background-color: gold" @error="canvasError" canvas-id="cropper">
` // TODO(you): code or logs ohere to reproduce the problem
修改disable-scroll="{{disable}}"写法;写成disable-scroll