-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: hide tooltip while scrolling #4819
Conversation
SonarCloud Quality Gate failed.
|
@@ -209,6 +211,39 @@ describe('tooltip', () => { | |||
expect(tooltip.opened).to.be.false; | |||
}); | |||
|
|||
it('should hide the tooltip when starting scrolling', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also solves an issue in Safari which does not trigger mouseenter
while scrolling (with a trackpad at least):
Bildschirmaufnahme.2022-10-25.um.10.04.10.mov
export const flushGrid = (grid) => { | ||
grid._observer.flush(); | ||
grid._afterScroll(); | ||
if (grid._debounceScrolling) { | ||
grid._debounceScrolling.flush(); | ||
} | ||
grid._afterScroll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes flushGrid
to also clear the scrolling
attribute.
) Co-authored-by: Sascha Ißbrücker <[email protected]>
Description
Closes the grid's tooltip when the user starts scrolling to prevent the tooltip overlay from blocking scroll events on the grid. When using keyboard navigation the tooltip is not closed. While scrolling, the tooltip is not opened again on
mouseenter
to avoid the tooltip rapidly opening and closing.Fixes #4766
Type of change