From 83e994dc9cfdb977deac7d9543747e9fbe2fc5a2 Mon Sep 17 00:00:00 2001 From: nageshwari17 <61220343+nageshwari17@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:21:42 +0530 Subject: [PATCH] Updated item position on scroll and cllick Updated position of the item on click on single item after scroll --- src/SelectableGroup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SelectableGroup.tsx b/src/SelectableGroup.tsx index de4dabe..01691fa 100644 --- a/src/SelectableGroup.tsx +++ b/src/SelectableGroup.tsx @@ -684,8 +684,8 @@ export class SelectableGroup extends Component { ) { this.selectItems( { - top, - left, + top: this.containerScroll.scrollTop + top, + left: this.containerScroll.scrollLeft + left, width: 0, height: 0, offsetWidth: 0,