Skip to content

Commit 519d916

Browse files
committed
fix mac build
1 parent 31b5c8a commit 519d916

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/features/FixMouseControls.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ class $modify(EditorUI) {
6666
}
6767
// otherwise move as is in vanilla
6868
else {
69-
objLayer->setPositionY(
70-
objLayer->getPositionY() + y * mult
71-
);
7269
// add support for the horizontal trackpad scrolling on mac
7370
// causes the editor to move sideways when scrolling on windows
74-
#ifdef GEODE_IS_MACOS
71+
#ifdef GEODE_IS_MACOS
7572
objLayer->setPositionX(
76-
objLayer->getPositionX() + x * mult
73+
objLayer->getPositionX() + y * mult
74+
);
75+
#else
76+
objLayer->setPositionY(
77+
objLayer->getPositionY() + y * mult
7778
);
78-
#endif
79+
#endif
7980
}
8081

8182
// call original but make it not do anything other than update

0 commit comments

Comments
 (0)