-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
This can be demonstrated using the Days by Fluctuation chart on https://dc-js.github.io/dc.js/. I was able to reproduce it more easily in Chrome but less so in Internet Explorer (11), but may have to do with IE11 updates were slower than in Chrome. Test was on a Win7 machine.
If you start with a selection of 3 bars

and then drag that selection left and right, at varying speeds, with some random pauses, the selection changes to fewer or more bars. I was not waiting for all charts to complete transition updates.




Normally when dragging, the cursor is a '+' shape (with arrow endpoints). At times when dragging, but without releasing mouse button, the cursor changes to a '-' shape (with arrow endpoints). It seems that dc is not maintaining the current operation state (dragging a selection) and is changing in/out of selection endpoint changes. Varying the 'x' starting position of the cursor has some effect on how quickly it can reproduce, doing the mouse-down closer to the selection endpoints causes it to reproduce sooner. I was not able to capture the cursor in a screen capture.
Expectation: Until mouse-up, dc.js should stay in drag ('+') state, and not alter the endpoints of the selection.