I'm triaging the issue with the fast scrolling on UIScrollView and I'm really upset how little to no info this component is on the internet. Like i disabled scrolling and yet after holding the dpad down to scroll downward eventually the fast scroll mechanism is used.
The issue I have is that I have a setup where the scrollview scrolling is disabled and whenever cells are focused it'll scroll to the cell's position for that cells to focused on top left side of the scrollview.
- I start off with the cell placed at position x of 1000. I scroll down enough to enable fast scrolling.
- While fast scrolling vertically, i press left a couple of time and it somewhat scroll horizontally.
Actual
- scrollView index is suddenly placed to x:0 instead of let say x:950-1000
Expected
- should be scrolled to the left of cell at position x 1000.
Attached the stack trace and the log showcasing it and run it on simulator tvos 26.2.
Initial properties of the scrollview we set up
scroll = [UIScrollView new];
scroll.contentInsetAdjustmentBehavior =
UIScrollViewContentInsetAdjustmentNever;
scroll.automaticallyAdjustsScrollIndicatorInsets = false;
[scroll setDirectionalLockEnabled:TRUE];
[scroll setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
scroll.bounces = FALSE;
scroll.delaysContentTouches = FALSE;
scroll.showsVerticalScrollIndicator = FALSE;
scroll.showsHorizontalScrollIndicator = FALSE;
The plan for me at least is to somehow disable the horizontal scrolling interaction of it when fast scrolling is enabled, without accessing the private components of it.