This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ - (void)goToApplicationLifecycle:(nonnull NSString*)state {
815815// touch is specified in the second argument.
816816- (void )dispatchTouches : (NSSet *)touches
817817 pointerDataChangeOverride : (flutter::PointerData::Change*)overridden_change
818- event : (UIEvent*)event {
818+ event : (UIEvent*)event {
819819 if (!_engine) {
820820 return ;
821821 }
@@ -927,11 +927,14 @@ - (void)dispatchTouches:(NSSet*)touches
927927 }
928928
929929 if (@available (iOS 13.4 , *)) {
930- if (event != nullptr ) {
931- pointer_data.buttons =
932- (((event.buttonMask & UIEventButtonMaskPrimary) > 0 ) ? flutter::PointerButtonMouse::kPointerButtonMousePrimary : 0 ) |
933- (((event.buttonMask & UIEventButtonMaskSecondary) > 0 ) ? flutter::PointerButtonMouse::kPointerButtonMouseSecondary : 0 );
934- }
930+ if (event != nullptr ) {
931+ pointer_data.buttons = (((event.buttonMask & UIEventButtonMaskPrimary) > 0 )
932+ ? flutter::PointerButtonMouse::kPointerButtonMousePrimary
933+ : 0 ) |
934+ (((event.buttonMask & UIEventButtonMaskSecondary) > 0 )
935+ ? flutter::PointerButtonMouse::kPointerButtonMouseSecondary
936+ : 0 );
937+ }
935938 }
936939
937940 packet->SetPointerData (pointer_index++, pointer_data);
You can’t perform that action at this time.
0 commit comments