vue-draggable-resizable
vue-draggable-resizable copied to clipboard
当横向拖动为负的时候,X值会有一些小问题,希望设置一个最小拖动值参数
我经X拖动设置了最小值为50,来防止拖动为负的时候显示错位,
但是当拖动为负的时候,他的translate还是负数,
于是,我修改了vue-draggable-resizable.vue 中
希望作者把这一个最小值设置成一个配置参数,这样方便大家使用。
Finally, thanks for the contribution and pay, thank you!
@cc5332 有一个方法,就是在onDrag中判断x<50时return false;这样可以终止这次拖动事件。
onDrag(x) {
if(x<50) {
return false;
}
// 其它逻辑
}
bug1:The value of x is uncontrolled and can still be dragged even if it no longer changes bug2:A parameter should be passed to limit the range of dragging