소스 검색

Make sure we're using the bounds of the view for our mouse region

Sam Lantinga 5 년 전
부모
커밋
6f3fa02e27
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/uikit/SDL_uikitview.m

+ 1 - 1
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 */