Disable tap to swipe during zoom

This commit is contained in:
Neeraj Gupta 2023-05-19 00:27:52 +05:30
parent 078ddbd0c0
commit f47b3e0a42
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -279,6 +279,9 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
return GestureDetector(
behavior: HitTestBehavior.translucent,
onTapDown: (TapDownDetails details) {
if (_shouldDisableScroll) {
return;
}
final screenWidth = MediaQuery.of(context).size.width;
final edgeWidth = screenWidth * 0.15; // 15% of screen width
if (details.localPosition.dx < edgeWidth) {