Bug 1114853 - Part 5: Don't dispatch event when we're at drag mode. r=roc

This commit is contained in:
Morris Tseng 2014-12-24 00:02:00 +01:00
Родитель f2bf94474c
Коммит b7c39e7aa0
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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;
}