We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b5c8a commit 519d916Copy full SHA for 519d916
src/features/FixMouseControls.cpp
@@ -66,16 +66,17 @@ class $modify(EditorUI) {
66
}
67
// otherwise move as is in vanilla
68
else {
69
- objLayer->setPositionY(
70
- objLayer->getPositionY() + y * mult
71
- );
72
// add support for the horizontal trackpad scrolling on mac
73
// causes the editor to move sideways when scrolling on windows
74
- #ifdef GEODE_IS_MACOS
+ #ifdef GEODE_IS_MACOS
75
objLayer->setPositionX(
76
- objLayer->getPositionX() + x * mult
+ objLayer->getPositionX() + y * mult
+ );
+ #else
+ objLayer->setPositionY(
77
+ objLayer->getPositionY() + y * mult
78
);
- #endif
79
+ #endif
80
81
82
// call original but make it not do anything other than update
0 commit comments