Closed cwschilly closed 4 months ago
@pierrepebay I'm hitting a bug here and I'm not sure how to fix it.
Open the spacetime plot. With "Show Duration" turned off, everything works as expected (try zooming in and out a few times--it should work normally).
If you select "Show Duration", the brush-to-zoom feature doesn't work correctly.
I believe that the problem stems from the way I'm setting the width
attribute of the rectangles.
If I comment out the calls to .attr('width': ...)
in mouseenter
, mouseleave
, and updateChart
, then the brushing/zooming works properly (of course, the function durations are then incorrect because it doesn't scale correctly).
If you have time, could you take a look at this and let me know what you think?
[^1]: Normally, the cursor over "empty" space on the plot should resemble a target/selector to indicate that brushing is enabled
Fixes #7 Fixes #25 Fixes #26 (kind of--the logo takes a moment to pop now. there may be a better solution)