зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1114853 - Part 5: Don't dispatch event when we're at drag mode. r=roc
This commit is contained in:
Родитель
f2bf94474c
Коммит
b7c39e7aa0
|
@ -1251,8 +1251,12 @@ SelectionCarets::Reflow(DOMHighResTimeStamp aStart, DOMHighResTimeStamp aEnd)
|
|||
SELECTIONCARETS_LOG("Update selection carets after reflow!");
|
||||
UpdateSelectionCarets();
|
||||
|
||||
DispatchSelectionStateChangedEvent(GetSelection(),
|
||||
SelectionState::Updateposition);
|
||||
// We don't care selection state when we're at drag mode. We always hide
|
||||
// bubble in drag mode. So, don't dispatch event here.
|
||||
if (mDragMode == NONE) {
|
||||
DispatchSelectionStateChangedEvent(GetSelection(),
|
||||
SelectionState::Updateposition);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче