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.

bug(arc): mouse events are breaking transitions

See original GitHub issue

Description

We have following data structure: One column can have multiple children, which can also have multiple children and so on. The value of the parent column is equal to the sum of the children column values.

If you click on column in the chart, it unloads current columns and loads the children columns of the clicked column and so on. We call it “drill down”. In the example below you can “drill down” to the third level of children elements. As you can see here: now If you click on the column, it unloads and loads new columns, but the transition gets interrupted by mouseover event and the arc doesn’t expand to the full size. It should look like this (don’t worry about the arc not expanding and focusing on mouseover, I disabled expandArc and $$.api.focus() to be able to show the expected behaviour): expected It seems like $$.transiting doesn’t have the right state in arc.on(“mouseover”). This function also calls selectArc which calls $$.expandArc(id) and $$.api.focus(id) which trigger some transitions that intterupt the transition triggered on redrawing the pie.

Steps to check or reproduce

  1. Open this example
  2. Click around the center of the pie chart to trigger columns update.
  3. Don’t move your mouse. It will stop the pie transition.
  4. If you resize window or hide the column the chart will redraw to expected size.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
michkamicommented, Apr 24, 2020

I tested it in our code and it works! Thank you @netil 😃

1reaction
netilcommented, Apr 24, 2020

Is not a clear solution, but this will work as expected on your case. I’ll be considering if there’s an effective solution for this.

 done: () => {
		const {svg} = chart.$;
		const duration = chart.config("transition.duration");

		setTimeout(() => {
			svg.style("pointer-events", "none");
			chart.flush(true);

			setTimeout(() => {
				svg.style("pointer-events", null);
			}, duration);
       }, 0);
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Arc Mouse is not working properly - Microsoft Community
My arc mouse that purchased about 7 months ago is not working properly. ... Double-Click on the category "Mice and other pointing devices"....
Read more >
202909 – Microsoft Arc Mouse no axis events after some time
I updated to kernel version 5.0 and noticed that after some time (according to "libinput debug-events") we no longer get any axis events....
Read more >
How to Fix Arc Touch Bluetooth Mouse Not Working after ...
Step 1. Click “scan” to let Driver Talent scan out your Arc mouse drivers for the Windows 10 Creators Update. Step 2. Click...
Read more >
Arc Mouse Not Working - Why And How To Fix It
Press the Windows + X key and select Device Manager. · Expand Mice and other pointing devices. · Double-click on the correct device....
Read more >
Bug listing with status CONFIRMED as at 2022/12/26 10:46:31
trapdoor2 (new ebuild)" status:CONFIRMED resolution: severity:enhancement · Bug:56360 - "app-misc/shunt-1.6.3 - restart processes in a pipe without breaking ...
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