Fix RTE when entering collections list

This commit is contained in:
Shawn 2023-12-05 10:56:36 -07:00
parent 5b6cd2d8b5
commit 8daa4c112e

View File

@ -37,6 +37,7 @@ class _CollectionListState extends State<_CollectionList> with GetItStateMixin {
// Maintain scroll position when switching between vertical and horizontal orientation.
// Multiplies or divides the current scroll position by the ratio of the vertical and horizontal card extents.
void _maintainScrollPos() {
if (scrollController.hasClients == false) return;
const extentFactor = _CollectionList._vtCardExtent / _CollectionList._hzCardExtent;
final currentPx = scrollController.position.pixels;
if (_vtMode.value == true) {