d3lm / ngx-drag-to-select

A lightweight, fast, configurable and reactive drag-to-select component for Angular 10 and beyond
https://www.npmjs.com/package/ngx-drag-to-select
MIT License
293 stars 65 forks source link

Select box does not update when scrolling, until mouse is moved #143

Open SbrowneA opened 3 years ago

SbrowneA commented 3 years ago

I have a scrollable div which calls the SelectContainerComponent.update() method on the inner dts-select-container when scrolled. The select area updates correctly; however, the select box does not get updated until the mouse is moved. Is there a particular reason for this (e.g. performance)?

I would like the select box to also update when I scroll just like a mouse move, is there some setting I have missed or a method call that can achieve this?

Thanks.

d3lm commented 3 years ago

Hey there 👋 Can you please provide a StackBlitz as a reproduction?

SbrowneA commented 3 years ago

Hi, @d3lm sure thing! Here is short video to illustrate what I mean by the "select box not getting updated (when scrolling at the same time as selecting). And this is the project on StackBlitz