Skip to content

Commit

Permalink
Update to include enhancement for getScrollContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Apr 17, 2023
1 parent 0e0f23a commit 81f8ade
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export default function ListViewDropIndicator( {
// the scroll container, minus the distance from the left
// edge of the scroll container to the left edge of the
// target element.
const scrollContainer = getScrollContainer( targetElement );
const scrollContainer = getScrollContainer(
targetElement,
'horizontal'
);

if ( scrollContainer ) {
const scrollContainerRect =
scrollContainer.getBoundingClientRect();
Expand Down

0 comments on commit 81f8ade

Please sign in to comment.