diff --git a/packages/core/src/data-editor/data-editor.tsx b/packages/core/src/data-editor/data-editor.tsx index 7621f149f..3d860fb07 100644 --- a/packages/core/src/data-editor/data-editor.tsx +++ b/packages/core/src/data-editor/data-editor.tsx @@ -2518,14 +2518,14 @@ const DataEditorImpl: React.ForwardRefRenderFunction = (p, const isTouch = (ev !== undefined && !(ev instanceof MouseEvent)) || (ev as any)?.pointerType === "touch"; const scrollEdge: GridMouseEventArgs["scrollEdge"] = [ - x < stickyX ? -1 : rect.width < x ? 1 : 0, + x < 0 ? -1 : rect.width < x ? 1 : 0, y < totalHeaderHeight ? -1 : rect.height < y ? 1 : 0, ]; @@ -655,7 +655,6 @@ const DataGrid: React.ForwardRefRenderFunction = (p, getBoundsForItem, fillHandle, selection, - stickyX, totalHeaderHeight, ] );