xyxiao001 / vue-cropper

A simple picture clipping plugin for vue
https://github.xyxiao.cn/vue-cropper/docs/vue3.html
MIT License
4.31k stars 699 forks source link

上下移动截图框,卡顿问题 #316

Open ronggugu opened 5 years ago

ronggugu commented 5 years ago

开启centerBox,截图框的宽度 = 最大宽度 (只能上下滑动); 按住截图框上下滑动会卡顿,按住左右滑动再上下滑动就不会卡顿。

xyxiao001 commented 5 years ago

这个应该是判断容器可移动的位置有点问题

leshphonc commented 4 years ago

同样的问题,请问有修复的安排吗。。

xyxiao001 commented 4 years ago

之前的判断逻辑存在问题,现在已经在重构中了

leshphonc commented 4 years ago

请问重构版本多久可以发布啊。。

leshphonc commented 4 years ago

@xyxiao001 请问移动端截图框上下移动问题什么时候修复呢。。。

shann09 commented 4 years ago

touchmove事件和scroll事件冲突了,在moveCrop方法的e.preventDefault();下面加一个e.stopImmediatePropagation();就可以了

weblowb commented 4 years ago

touchmove事件和scroll事件冲突了,在moveCrop方法的e.preventDefault();下面加一个e.stopImmediatePropagation();就可以了

你好 好像并不行啊

leshphonc commented 4 years ago

还没有修复吗。。。。。

Gaays commented 3 years ago

touchmove事件和scroll事件冲突了,在moveCrop方法的e.preventDefault();下面加一个e.stopImmediatePropagation();就可以了

不行+1

duxiaoshai commented 3 years ago

裁剪框拖动 卡顿严重

moyongqing commented 3 years ago

用这个组件之所以出现卡顿的原因是因为全局使用了* { transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border 0s; },这个是作用在所有标签上的动画,用了这个的画就会出现上下移动卡顿的问题,把这一句注释掉就正常了,我也是调试了好久才发现的

wqkwqk commented 3 years ago

2021年了 大哥还没修复吗

qq406601626 commented 2 years ago

2022年了 大哥还没修复吗

MengQingYu1998 commented 1 year ago

2023年了 大哥还没修复吗

asmallhandsome commented 11 months ago

这问题有解决方法了吗?