mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 995475 - Clear the active element on touch end, if the touch wasn't a click. r=botond
This commit is contained in:
parent
241a56c740
commit
5f3c0b45ec
@ -118,6 +118,11 @@ ActiveElementManager::HandleTouchEnd(bool aWasClick)
|
||||
CancelTask();
|
||||
if (aWasClick) {
|
||||
SetActive(mTarget);
|
||||
} else {
|
||||
// We might reach here if mCanBePan was false on touch-start and
|
||||
// so we set the element active right away. Now it turns out the
|
||||
// action was not a click so we need to reset the active element.
|
||||
ResetActive();
|
||||
}
|
||||
|
||||
ResetTouchBlockState();
|
||||
|
Loading…
Reference in New Issue
Block a user