mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00: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
f4a7eaa5b8
commit
80ae1b2f26
@ -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