[Scummvm-git-logs] scummvm master -> 7ad9e9c8e2644d0f899957512547dd5d9324d337

larsamannen noreply at scummvm.org
Fri Oct 13 17:25:07 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7ad9e9c8e2 IOS7: Defer screen edge system gestures on orientation changes


Commit: 7ad9e9c8e2644d0f899957512547dd5d9324d337
    https://github.com/scummvm/scummvm/commit/7ad9e9c8e2644d0f899957512547dd5d9324d337
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2023-10-13T19:25:01+02:00

Commit Message:
IOS7: Defer screen edge system gestures on orientation changes

The system gestures on screen edges took precedence over the tap
gestures again after screen rotations.
Call function setNeedsUpdateOfScreenEdgesDeferringSystemGestures
on orientation changes to notify the system that it needs to read
the edges from the view controller’s
preferredScreenEdgesDeferringSystemGestures property again.

Defer system gestures on all edges since the top changes when
rotating the device.

Changed paths:
    backends/platform/ios7/ios7_scummvm_view_controller.mm


diff --git a/backends/platform/ios7/ios7_scummvm_view_controller.mm b/backends/platform/ios7/ios7_scummvm_view_controller.mm
index eba6a9cbce0..3e90bbd8dab 100644
--- a/backends/platform/ios7/ios7_scummvm_view_controller.mm
+++ b/backends/platform/ios7/ios7_scummvm_view_controller.mm
@@ -49,7 +49,7 @@
 #if TARGET_OS_IOS
 
 - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures {
-	return UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight;
+	return UIRectEdgeAll;
 }
 
 - (UIInterfaceOrientation)interfaceOrientation {
@@ -111,6 +111,9 @@
 		UIInterfaceOrientation orientationAfter = [self interfaceOrientation];
 		if (orientationAfter != UIInterfaceOrientationUnknown) {
 			[self setCurrentOrientation:orientationAfter];
+			if (@available(iOS 11.0, *)) {
+				[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
+			}
 		}
 	}];
 }




More information about the Scummvm-git-logs mailing list