π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Filter out scroll position divisions that are too close to each other
ashilknd319b244ee96
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar_2.dart b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar_2.dartindex 06ea9ca698..57a82cc6d1 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar_2.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar_2.dart@@ -82,8 +82,20 @@ class _CustomScrollBar2State extends State<CustomScrollBar2> {);}}+ final filteredResult = <({double position, String title})>[];++ // Filter out positions that are too close to each other+ if (result.isNotEmpty) {+ filteredResult.add(result.first);+ for (int i = 1; i < result.length; i++) {+ if ((result[i].position - filteredResult.last.position).abs() >= 60) {+ filteredResult.add(result[i]);+ }+ }+ }+setState(() {- positionToTitleMap = result;+ positionToTitleMap = filteredResult;});}