Skip to content

Commit

Permalink
disable on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 3, 2024
1 parent 39b7194 commit c9c6a8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Client/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ void Window::cocosCreate(CCMenu* menu)
scroll->moveToTop();
}

#ifndef GEODE_IS_IOS

bool WindowMouseDispatcher::dispatchScrollMSG(float y, float x)
{
for (auto window : Client::instance->windows)
Expand All @@ -208,4 +210,6 @@ bool WindowMouseDispatcher::dispatchScrollMSG(float y, float x)
}

return CCMouseDispatcher::dispatchScrollMSG(y, x);
}
}

#endif
6 changes: 5 additions & 1 deletion src/Client/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class Window
virtual void cocosCreate(CCMenu* menu);
};

#ifndef GEODE_IS_IOS

class $modify (WindowMouseDispatcher, CCMouseDispatcher)
{
bool dispatchScrollMSG(float x, float y);
};
};

#endif

0 comments on commit c9c6a8d

Please sign in to comment.