Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use different haptics depending on Platform that comes when using the scrollbar

ashilkn463602c42561
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 91781538d0..6565dcc48c 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -1,4 +1,5 @@
import 'dart:async';
+import "dart:io";
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
@@ -828,7 +829,11 @@ class _PinnedGroupHeaderState extends State<PinnedGroupHeader> {
setState(() {});
if (widget.scrollbarInUseNotifier.value) {
- HapticFeedback.vibrate();
+ if (Platform.isIOS) {
+ HapticFeedback.selectionClick();
+ } else {
+ HapticFeedback.vibrate();
+ }
}
}