simonwep / selection

✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks!
https://simonwep.github.io/selection
MIT License
2.51k stars 147 forks source link

Selection-area broken in scrollable containers #185

Closed Radius2 closed 1 year ago

Radius2 commented 1 year ago

Hi! I have wrong position of selection area in scroll container Code

https://user-images.githubusercontent.com/25176930/203510452-9af1e60f-4701-4440-9a87-ae4a29fb81c3.mp4

simonwep commented 1 year ago

What a strange bug... for some reason the area is off by the amount of margin you applied to the container. I will take a closer look at it later :) I definitely can't reproduce it on the demo page (by adding a margin...)

Edit: never mind, this is broken in v3.2... I will roll out a fix later today!

simonwep commented 1 year ago

Fixed in v3.2.1 :)