GUI: invert cursor follows wheel

issue #1374
This commit is contained in:
tildearrow 2023-08-19 16:25:08 -05:00
parent 487065478d
commit 14d3baae56
2 changed files with 13 additions and 5 deletions

View file

@ -950,7 +950,7 @@ void FurnaceGUI::drawPattern() {
// cursor follows wheel
if (settings.cursorFollowsWheel && (!e->isPlaying() || !followPattern) && ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows)) {
if (wheelX!=0 || wheelY!=0) {
moveCursor(wheelX,wheelY,false);
moveCursor(wheelX,(settings.cursorFollowsWheel==2)?wheelY:-wheelY,false);
}
}