Skip to content
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

Merged
merged 6 commits into from
Jan 9, 2019

Conversation

SAndreeva
Copy link
Contributor

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

public ngAfterViewInit(): void {
if (this.mode === TimePickerInteractionMode.dropdown) {
fromEvent(this.input.nativeElement, 'keydown').pipe(
throttle(() => interval(0, animationFrameScheduler)),
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@sboykova sboykova added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Jan 8, 2019
@sboykova sboykova added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Jan 8, 2019
@rkaraivanov rkaraivanov merged commit 5ad26bf into 7.1.x Jan 9, 2019
@rkaraivanov rkaraivanov deleted the SAndreeva/time-picker-bug-fixing branch January 9, 2019 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕐 time-picker version: 7.1.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants