From 6f3fa02e27fe9c1892fd269b353f70a65b193e69 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 13 Apr 2020 18:25:38 -0700 Subject: [PATCH] Make sure we're using the bounds of the view for our mouse region --- src/video/uikit/SDL_uikitview.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitview.m b/src/video/uikit/SDL_uikitview.m index c28aab889..2fcb0ce65 100644 --- a/src/video/uikit/SDL_uikitview.m +++ b/src/video/uikit/SDL_uikitview.m @@ -153,7 +153,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick; SDL_SendMouseMotion(sdlwindow, 0, 0, (int)point.x, (int)point.y); } - return defaultRegion; + return [UIPointerRegion regionWithRect:self.bounds identifier:nil]; } #endif /* !TARGET_OS_TV && __IPHONE_13_4 */