opt: binary search fontsize (#1818)

* opt: permission

* opt: opt: binary search fontsize

* use transform

Signed-off-by: dom <githubaccount56556@proton.me>

* fix

Signed-off-by: dom <githubaccount56556@proton.me>

* opt: matrix

* opt [skip ci]

* tweaks [skip ci]

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-02-01 00:01:34 +08:00
committed by GitHub
parent 8964197b73
commit 77fff92939
3 changed files with 97 additions and 101 deletions

View File

@@ -1585,13 +1585,9 @@ class VideoDetailController extends GetxController
response.viewPoints?.firstOrNull?.type == 2) {
try {
viewPointList.value = response.viewPoints!.map((item) {
double start = (item.to! / (data.timeLength! / 1000)).clamp(
0.0,
1.0,
);
final end = (item.to! / (data.timeLength! / 1000)).clamp(0.0, 1.0);
return ViewPointSegment(
start: start,
end: start,
end: end,
title: item.content,
url: item.imgUrl,
from: item.from,