Skip to content

Commit ead77c7

Browse files
severoCopilot
andauthored
Update test/helpers/scroll.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 26120f2 commit ead77c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/helpers/scroll.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ describe('getScrollActionForRow', () => {
331331
const localOffset = 16_500 // below the largeScrollPx threshold (16,500)
332332
const rowIndex = 600
333333
const virtualScrollBase = 0
334-
// should add a small delta (2_317), but the accumulated delta (18_817) exceeds largeScrollPx, so: scrollTop is returned to synchronize properly
334+
// should add a small delta (2_317); even though the accumulated delta (18_817) would exceed largeScrollPx, a local scroll action is still returned
335335
// TODO(SL): directly set scrollTopAnchor instead of virtualScrollBase
336336
const action = getScrollActionForRow({ scale, rowIndex, scrollTopAnchor: scale.fromVirtual(virtualScrollBase), localOffset })
337337
expect(action?.type).toBe('LOCAL_SCROLL')

0 commit comments

Comments
 (0)