selecto icon indicating copy to clipboard operation
selecto copied to clipboard

选择框的起始位置与我点击的位置有偏差跟随可移动元素位置变化

Open afan0228 opened this issue 2 years ago • 3 comments

Environments

  • Framework name:vue
  • Framework version:2.0
  • Component name: vue-selecto
  • Component version:1.12.0
  • Testable Address(optional):

Description

我在一个可移动的元素里框选,选择框的起始位置与我点击的位置有偏差跟随可移动元素位置变化,怎么才能修复这个问题?

afan0228 avatar Jan 12 '22 01:01 afan0228

1641956125(1)

afan0228 avatar Jan 12 '22 02:01 afan0228

@afan0228

Perhaps the parent Element (or higher) has transfrom set. If so, set element without transform or rootContainer option (without transform)

daybrush avatar Mar 09 '22 06:03 daybrush

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属性

meibin08 avatar May 24 '22 10:05 meibin08