Disable tap to swipe during zoom
This commit is contained in:
parent
078ddbd0c0
commit
f47b3e0a42
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue