GUI: fix piano allowing you to scroll on mobile

This commit is contained in:
tildearrow 2022-12-01 19:05:54 -05:00
parent 3b0ef7c096
commit 8eecdd4b93
4 changed files with 20 additions and 15 deletions

View file

@ -222,6 +222,7 @@ void FurnaceGUI::drawPiano() {
bool canInput=false;
if (ImGui::ItemHoverable(rect,ImGui::GetID("pianoDisplay"))) {
canInput=true;
ImGui::InhibitInertialScroll();
}
if (view) {
int notes=oct*12;