diff --git a/macos/cc/JWMMainView.mm b/macos/cc/JWMMainView.mm index 2443523d..a211f4b5 100644 --- a/macos/cc/JWMMainView.mm +++ b/macos/cc/JWMMainView.mm @@ -330,13 +330,13 @@ - (void)touchesBeganWithEvent:(NSEvent *)event { const NSSize size = [touch deviceSize]; const NSPoint pos = [touch normalizedPosition]; jwm::JNILocal eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchStart::make( - fWindow->fEnv, - (jint)[touchId unsignedIntegerValue], - pos.x, - pos.y, - (jint)[deviceId unsignedIntegerValue], - size.width, - size.height)); + fWindow->fEnv, + (jint)[touchId unsignedIntegerValue], + pos.x, + pos.y, + (jint)[deviceId unsignedIntegerValue], + size.width, + size.height)); fWindow->dispatch(eventObj.get()); } } @@ -347,10 +347,10 @@ - (void)touchesMovedWithEvent:(NSEvent *)event { const NSUInteger touchId = [[fTouchIds objectForKey:touch.identity] unsignedIntegerValue]; const NSPoint pos = [touch normalizedPosition]; jwm::JNILocal eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchMove::make( - fWindow->fEnv, - (jint)touchId, - pos.x, - pos.y)); + fWindow->fEnv, + (jint)touchId, + pos.x, + pos.y)); fWindow->dispatch(eventObj.get()); } } @@ -365,8 +365,8 @@ - (void)touchesEndedWithEvent:(NSEvent *)event { } const NSPoint pos = [touch normalizedPosition]; jwm::JNILocal eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchEnd::make( - fWindow->fEnv, - (jint)touchId)); + fWindow->fEnv, + (jint)touchId)); fWindow->dispatch(eventObj.get()); } } @@ -380,8 +380,8 @@ - (void)touchesCancelledWithEvent:(NSEvent *)event { fTouchCount = 0; } jwm::JNILocal eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchCancel::make( - fWindow->fEnv, - (jint)touchId)); + fWindow->fEnv, + (jint)touchId)); fWindow->dispatch(eventObj.get()); } }