netzwerg / react-svg-timeline

React event timeline component based on SVG
Other
93 stars 26 forks source link

Esc does not completely reset zoom range #73

Open Dodn opened 2 years ago

Dodn commented 2 years ago

Pressing esc doesn't completely zoom you out, instead the zoom range is set to ~99% of the interpolated value between currentDomain and maxDomain (almost as if the animation skips the very last frame). Currently, you can press esc repeatedly to converge to the default zoom level. The same goes for click followed by alt+click.

Can be observed in the interactive demo by looking at the displayed 'Zoom Range' value.

netzwerg commented 2 years ago

Thanks for reporting this issue. I was able to reproduce it based on your description. We will look into a fix!