Skip to content

Commit 97de835

Browse files
committed
ok now i should substract window size from y coord
1 parent 3f3f7d2 commit 97de835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macos.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
217217
geode::log::debug("mouse pos: {}", mousePos);
218218

219219
cocos2d::CCTouch touch{};
220-
touch.setTouchInfo(0, mousePos.x, /* winSize.height - */ mousePos.y);
220+
touch.setTouchInfo(0, mousePos.x, winSize.height - mousePos.y);
221221

222222
g_selectedInput->useUpdateBlinkPos(true);
223223

0 commit comments

Comments
 (0)