Status Update
Comments
lp...@google.com <lp...@google.com>
ap...@google.com <ap...@google.com> #2
This is probably closely related to
pr...@google.com <pr...@google.com> #3
I tried wrapping the text in a Box with verticalScroll Modifier, and then using the results from onTextLayout in addition to current selection (through TextFieldValue) to determine current line offset and scroll to it on every change (tracked using onSizeChanged), but I guess I messed up something in there, it didn't work very well.
(btw, onTextLayout returns Float values for offsets, while the scroll state's scrollBy() function accepts Integers. I only round these Floats to Integers, could that be the problem?)
Anyways I honestly got tired of trying to hack around it. I'd love to know if there's any workaround for this in the moment, and I hope you fix this soon.
Description
Currently, `Modifier.verticalScroll` (as well as its horizontal counterpart) always passes to `scrollable` the default `OverscrollEffect` defined in `ScrollableDefaults` - allowing for this to be overridden via an optional argument would greatly cut down on the code duplication that currently ensues from re-implementing the vertical scroll just to apply a different `OverscrollEffect`.