Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix touch screen on Canvas and popLayer method. #414

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions engine/source/gui/guiCanvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void GuiCanvas::processScreenTouchEvent(const ScreenTouchEvent *event)
mLastMouseDownTime = curTime;
// mLastEvent.mouseClickCount = mLastMouseClickCount;

rootScreenTouchDown(mLastEvent);
rootMouseDown(mLastEvent);
}
else if(event->action == SI_MOVE)
{
Expand All @@ -243,7 +243,7 @@ void GuiCanvas::processScreenTouchEvent(const ScreenTouchEvent *event)
else if(event->action == SI_BREAK)
{
mNextMouseTime = 0xFFFFFFFF;
rootScreenTouchUp(mLastEvent);
rootMouseUp(mLastEvent);
}
}

Expand Down Expand Up @@ -1095,10 +1095,8 @@ void GuiCanvas::popDialogControl(S32 layer)
i--;
ctrl = static_cast<GuiControl*>(*i);
if (ctrl->mLayer == layer)
break;
popDialogControl(ctrl);
}
if (ctrl)
popDialogControl(ctrl);
}

void GuiCanvas::mouseLock(GuiControl *lockingControl)
Expand Down