Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Oct 2, 2024
1 parent cec62f1 commit 28b7891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SelectionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function SelectionList<TItem extends ListItem>({onScroll, ...props}: BaseSelecti
{...props}
ref={ref}
onScroll={onScroll ?? defaultOnScroll}
// Ignore the focus if it's caused by a touch event on a mobile chrome
// Ignore the focus if it's caused by a touch event on mobile chrome.
// For example, a long press will trigger a focus event on mobile chrome.
shouldIgnoreFocus={Browser.isMobileChrome() && isScreenTouched}
/>
);
Expand Down

0 comments on commit 28b7891

Please sign in to comment.