Skip to content

Commit

Permalink
fix mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Jan 13, 2025
1 parent 31b5c8a commit 519d916
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/features/FixMouseControls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ class $modify(EditorUI) {
}
// otherwise move as is in vanilla
else {
objLayer->setPositionY(
objLayer->getPositionY() + y * mult
);
// add support for the horizontal trackpad scrolling on mac
// causes the editor to move sideways when scrolling on windows
#ifdef GEODE_IS_MACOS
#ifdef GEODE_IS_MACOS
objLayer->setPositionX(
objLayer->getPositionX() + x * mult
objLayer->getPositionX() + y * mult
);
#else
objLayer->setPositionY(
objLayer->getPositionY() + y * mult
);
#endif
#endif
}

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

0 comments on commit 519d916

Please sign in to comment.