ignite-ui
ignite-ui copied to clipboard
igGrid - virtualScrollTo doesn't scroll to the very position if the position is not integer value.
Description
igGrid - virtualScrollTo doesn't scroll to the very position if the position is not integer value.
- igniteui-angular version: 22.1
- browser: Chrome, Edge
- other condition: Either when the display scaling is not 100% in Windows settings or when the browser zoom level is not 100%
Steps to reproduce
- Open the attached reproducible sample.
- Scroll vertically to around the row whose ID is 25 by dragging the scroll thumb.
- Click "button2" button. -> The current scroll position is displayed in the text box "hoji" just below the button. Make sure the scroll position has a subpixel precision. If it doesn't, repeat the steps 2 and 3 until it does.
- Click "button3" button. -> Observe the grid. And observe what is displayed in the text box "saki" as current scroll position.
Result
The grid slightly scrolls. The current scroll position in "saki" is different from that in "hoji".
Expected result
The grid doesn't scroll. The current scroll position in "saki" is same as that in "hoji".