Skip to content

Point hover animation flicker since 2.9.0 #6614

@emmcb

Description

@emmcb

Expected Behavior

When moving the mouse on a line chart, we should have a smooth animation on point hover.

Current Behavior

The animation flickers a lot when moving the mouse while triggering new animations at the same time. By looking at the behavior it seems that the first animation restarts at the beginning each time a new animation starts, explaining the flicker.

Steps to Reproduce (for bugs)

Can be reproduced on https://www.chartjs.org/samples/latest/scales/time/financial.html
Put the mouse cursor on a line point, then move the mouse left along the line. You will notice that the first hovered point flickers instead of disappearing smoothly.

Context

Started right after I upgraded to 2.9.0. I saw that #6129 was introduced in 2.9.0, so this bug was probably here before, but masked because there was no animation.

Environment

  • Chart.js version: 2.9.0
  • Browser name and version: Chromium 78, Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions