Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed May 4, 2024
1 parent 764d737 commit c34b826
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -192,7 +192,7 @@ export const createScrollbarsSetupEvents = (
addEventListener(_scrollbar, 'pointerleave pointercancel', () => {
scrollbarsAddRemoveClass(classNameScrollbarInteraction, false);
}),
// focus viewport when clicking on a scrollbar
// focus viewport when clicking on a scrollbar (mouse only)
!_viewportIsTarget &&
addEventListener(_scrollbar, 'mousedown', () => {
const focusedElement = getFocusedElement();
Expand Down Expand Up @@ -249,7 +249,7 @@ export const createScrollbarsSetupEvents = (
refreshHandleOffsetTransition();
}
}),
// solved problem of interaction causing click events
// solve problem of interaction causing click events
addEventListener(
_scrollbar,
'pointerdown',
Expand Down

0 comments on commit c34b826

Please sign in to comment.