-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(tooltip): reposition on scroll #2703
Conversation
Looking into why IE/FF is having issues... |
|
||
|
||
/** Time in ms to throttle the scrolling events by default. */ | ||
export const DEFAULT_AUDIT_TIME = 20; |
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.
How about DEFAULT_SCROLL_THROTTLE
?
src/lib/tooltip/tooltip.ts
Outdated
ngOnInit() { | ||
// When a scroll on the page occurs, update the position in case this tooltip needs | ||
// to be repositioned. | ||
this._scrollDispatcher.scrolled(SCROLL_THROTTLE_MS).subscribe(() => { |
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.
Need to unsubscribe on ngOnDestroy
c5de08b
to
ed7055e
Compare
21c776d
to
f8d8f20
Compare
f8d8f20
to
86a78cd
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reposition uses a throttled scroll event from the scroll dispatcher. If the reposition causes the tooltip to be clipped by a scrollable container, then hide the tooltip.