Skip to content

Commit a026378

Browse files
authored
revert the scroll inversion on macos
1 parent 39d8bae commit a026378

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static float SCROLL_SENSITIVITY = 10;
142142
class $modify(CCMouseDispatcher) {
143143
bool dispatchScrollMSG(float y, float x) {
144144
auto& io = ImGui::GetIO();
145-
io.AddMouseWheelEvent(x / SCROLL_SENSITIVITY, y / SCROLL_SENSITIVITY GEODE_WINDOWS(* -1.f));
145+
io.AddMouseWheelEvent(x / SCROLL_SENSITIVITY, -y / SCROLL_SENSITIVITY);
146146

147147
if (!io.WantCaptureMouse || shouldPassEventsToGDButTransformed()) {
148148
return CCMouseDispatcher::dispatchScrollMSG(y, x);

0 commit comments

Comments
 (0)