selecto
selecto copied to clipboard
选择框的起始位置与我点击的位置有偏差跟随可移动元素位置变化
Environments
- Framework name:vue
- Framework version:2.0
- Component name: vue-selecto
- Component version:1.12.0
- Testable Address(optional):
Description
我在一个可移动的元素里框选,选择框的起始位置与我点击的位置有偏差跟随可移动元素位置变化,怎么才能修复这个问题?
@afan0228
Perhaps the parent Element (or higher) has transfrom set. If so, set element without transform or rootContainer
option (without transform)
Environments
- Framework name:vue
- Framework version:2.0
- Component name: vue-selecto
- Component version:1.12.0
- Testable Address(optional):
Description
我在一个可移动的元素里框选,选择框的起始位置与我点击的位置有偏差跟随可移动元素位置变化,怎么才能修复这个问题?
检查一下你的container 是否有包含transform-style: preserve-3d
,或transform
相关的属性,demo就是有 transform-style
才有问题的
或父节点中是否有 transform
属性