Fix description scrolling

This commit is contained in:
Koitharu
2023-07-28 12:22:17 +03:00
parent 2378d104c3
commit 00187c0d17

View File

@@ -26,4 +26,12 @@ class SelectableTextView @JvmOverloads constructor(
Selection.setSelection(spannableText, text.length)
}
}
override fun scrollTo(x: Int, y: Int) {
if (maxLines in 1 until Integer.MAX_VALUE) {
super.scrollTo(0, 0)
} else {
super.scrollTo(x, y)
}
}
}