You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was implementing an AreaGraph with a brush and noticed, that on touchpad (using a Macbook) when I move the selection a bit faster than unusual, the selection area is changed to a wrong position. This happens both in my implementation and in the example. I have no custom onChange handlers or onDragEnd handlers etc.
This is my code, basically just put my data into the example on site. <Brush xScale={xScale} yScale={yScale} width={xMax} height={yMax} margin={AREA_CHART_MARGIN} handleSize={8} innerRef={brushRef} resizeTriggerAreas={['left', 'right']} brushDirection="horizontal" onMouseMove={handleTooltip} onMouseLeave={() => hideTooltip()} selectedBoxStyle={selectedBrushStyle} useWindowMoveEvents renderBrushHandle={(props) => <BrushHandle {...props} />} />
The text was updated successfully, but these errors were encountered:
jakubschenk
changed the title
Brush jumps to a wrong position when changing it's width a handle
Brush jumps to a wrong position when changing it's width with a handle
Feb 23, 2024
jakubschenk
changed the title
Brush jumps to a wrong position when changing it's width with a handle
Brush jumps to a wrong position when changing selection with a handle
Feb 23, 2024
jakubschenk
changed the title
Brush jumps to a wrong position when changing selection with a handle
Brush jumps to wrong position when changing selection with a handle
Feb 23, 2024
I was implementing an AreaGraph with a brush and noticed, that on touchpad (using a Macbook) when I move the selection a bit faster than unusual, the selection area is changed to a wrong position. This happens both in my implementation and in the example. I have no custom onChange handlers or onDragEnd handlers etc.
This is my code, basically just put my data into the example on site.
<Brush xScale={xScale} yScale={yScale} width={xMax} height={yMax} margin={AREA_CHART_MARGIN} handleSize={8} innerRef={brushRef} resizeTriggerAreas={['left', 'right']} brushDirection="horizontal" onMouseMove={handleTooltip} onMouseLeave={() => hideTooltip()} selectedBoxStyle={selectedBrushStyle} useWindowMoveEvents renderBrushHandle={(props) => <BrushHandle {...props} />} />
Videos of the issue to understand it better:
Screen.Recording.2024-02-23.at.16.55.52.mov
Screen.Recording.2024-02-23.at.16.56.49.mov
The text was updated successfully, but these errors were encountered: