Skip to content

Commit

Permalink
fix switching to edit tab on freemove touchEnded
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Oct 9, 2023
1 parent ced8aff commit 3e810a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/features/StartPosSwitcher/StartPosSwitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ class $modify(MyEditorUI, EditorUI) {
bool ccTouchBegan(CCTouch* touch, CCEvent* event) {
auto ret = EditorUI::ccTouchBegan(touch, event);
m_fields->holding = true;

// bad fix for bad bug :)
if (m_freeMoveEnabled) {
MoreTabs::get(this, false)->switchEditTab(1);
}
return ret;
}

Expand Down

0 comments on commit 3e810a4

Please sign in to comment.