From 3cd43c33babcfd321030693c159826673f0eee90 Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 3 Aug 2023 10:19:01 +0700 Subject: [PATCH] TF-2067 Disable swipe left/right to next/previous email in email view (cherry picked from commit faebdcea855e71299c421c506da5b1a109252689) --- .../presentation/controller/single_email_controller.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/features/email/presentation/controller/single_email_controller.dart b/lib/features/email/presentation/controller/single_email_controller.dart index 8ad0ce604..ae023a51a 100644 --- a/lib/features/email/presentation/controller/single_email_controller.dart +++ b/lib/features/email/presentation/controller/single_email_controller.dart @@ -1279,7 +1279,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin { void _handleParseCalendarEventSuccess(ParseCalendarEventSuccess success) { if (success.calendarEventList.isNotEmpty) { calendarEvent.value = success.calendarEventList.first; - _enableScrollPageView(); + if (PlatformInfo.isMobile) { + _enableScrollPageView(); + } } }