IPS-LMU / EMU-webApp

The EMU-webApp is an online and offline web application for labeling, visualizing and correcting speech and derived speech data.
http://ips-lmu.github.io/EMU-webApp/
MIT License
51 stars 14 forks source link

hierarchy jumps a little when finishing a rush of zoom events #158

Closed MJochim closed 3 years ago

MJochim commented 9 years ago

I haven't been able to figure out exactly what the cause is. Some background:

When I receive zoom events from d3js, that library calculates both a scale factor and appropriate translate values so the mouse cursor remains at the center of the zoom effect. I do not really use the scale factor to feed a tranform on the complete graph. I only do this as long as zoom events keep being fired (zoomInProgress). During that time, the cursor actually remains at the center alrigt. But once the mouse wheel stops turning, a complete render() is called, the nodes' positions are re-calculated based on the scale factor supplied by d3js and the scale() transform is removed. At this time, the hierarchy often jumps a little.

raphywink commented 3 years ago

seems to have disap. since bumping D3js version