question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mouse hover during animation (generating canvas tooltip) breaks animation

See original GitHub issue

Expected Behavior

Animation should happen, and not be affected by a mouseover event. If needed, the tooltip should wait to render until the animation has completed.

Current Behavior

mousing over chart during animation causes animation to restart

Possible Solution

I think the mouse event triggering the tooltip draw animation is likely causing the bug. Probably just need a conditional, or some behavior to prevent the event before animation starts and re-allow after animation completes.

Steps to Reproduce (for bugs)

Move the timeline (or use hotkeys ArrowLeft and ArrowRight), which will cause an animated update of the chart. Then move the mouse to hover over the chart before animation completes. Every mouse movement will cause the animation to restart, leading to an extremely jerky appearance if you’re dragging a mouse across the chart as it happens.

Context

I think it will be pretty clear in the example

Environment

  • Chart.js version: v2.9.3
  • Browser name and version: Version 80.0.3987.163 (Official Build) (64-bit)
  • Link to your project: covid.kylebaker.io

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kurklecommented, Jun 9, 2020

@kylebakerio I think your Corona Dashboard would work wonderfully with v3 😃

0reactions
kurklecommented, Aug 25, 2020

Closing as resolved (in v3).

Read more comments on GitHub >

github_iconTop Results From Across the Web

animationEnabled - Enables / Disables Tool Tip Animation
While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. This effect can be controlled by animationEnabled Property....
Read more >
How to show labels for markers on hover when using ...
How to show labels for markers on hover when using animation? · Possible duplicate of Possible to make labels appear when hovering over...
Read more >
Adding Mouse Hover Animation to HTML5 Canvas Drawings
Adding Mouse Hover Animation to HTML5 Canvas Drawings - Javascript Canvas ... ResultView the demo in separate window. Hover mouse over circle.
Read more >
How to Display a Tooltip During A Presentation in PowerPoint
In this PowerPoint Tutorial video you learn how to display a tooltip in presentation mode when you hover the mouse over an object....
Read more >
2.3: Animated tooltips - YouTube
... this module here:https://cssanimation.rocks/levelup/src/02/02.zipIn this lesson we'll write a simple script to generate tooltips for ou.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found