Skip to content

Commit

Permalink
fix: scrolling inside the table with scrollbar (#9753)
Browse files Browse the repository at this point in the history
Fixed- when scrolling inside the table with scrollbar, cursor also
selects rows. Now on scrolling with scrollbar content is scrolled in
respective direction as expected and table rows don't get selected.

fixes issue #6773

---------

Co-authored-by: nitin <[email protected]>
Co-authored-by: ehconitin <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2025
1 parent bbd3af1 commit 1d7cbca
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,18 @@ export const ScrollWrapper = ({
},
events: {
updated: (osInstance) => {
const { scrollOffsetElement: target } = osInstance.elements();
const {
scrollOffsetElement: target,
scrollbarVertical,
scrollbarHorizontal,
} = osInstance.elements();

if (scrollbarVertical !== null) {
scrollbarVertical.track.dataset.selectDisable = 'true';
}
if (scrollbarHorizontal !== null) {
scrollbarHorizontal.track.dataset.selectDisable = 'true';
}
setScrollBottom(
target.scrollHeight - target.clientHeight - target.scrollTop,
);
Expand Down

0 comments on commit 1d7cbca

Please sign in to comment.