daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2k stars 81 forks source link

Area offset #136

Open happy2277 opened 1 year ago

happy2277 commented 1 year ago

Environments

Description

Hello, when I scale the parent element, the result remains the same, but the selected area is offset, is there a solution to solve it? 微信截图_20230614095358

daybrush commented 1 year ago

@happy2277

hi. Try setting the rootContainer. To the parent parent element to which no transform is applied

:rootContainer="no transformed parent element or ancestor's element"