-
Notifications
You must be signed in to change notification settings - Fork 162
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(time picker): IE cursor flickering on spinning #3539
Conversation
public ngAfterViewInit(): void { | ||
if (this.mode === TimePickerInteractionMode.dropdown) { | ||
fromEvent(this.input.nativeElement, 'keydown').pipe( | ||
throttle(() => interval(0, animationFrameScheduler)), |
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.
There is no sense to throttle events for 0 ms. I think setting the interval to 300 ms would make more sense.
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.
interval(0, animationFrameScheduler) creates an observable that emits one event every time the browser is ready to display a new frame and then the throttle operator will emit a value from that source observable.
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes