зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1067243 - Refine the selection reason matching logic to toggle the visibility of selection carets. r=roc
This commit is contained in:
Родитель
51b2436fc1
Коммит
120fb11ce3
|
@ -856,7 +856,9 @@ SelectionCarets::NotifySelectionChanged(nsIDOMDocument* aDoc,
|
||||||
SetVisibility(false);
|
SetVisibility(false);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
if (aReason & nsISelectionListener::KEYPRESS_REASON) {
|
if (!aReason || (aReason & (nsISelectionListener::DRAG_REASON |
|
||||||
|
nsISelectionListener::KEYPRESS_REASON |
|
||||||
|
nsISelectionListener::MOUSEDOWN_REASON))) {
|
||||||
SetVisibility(false);
|
SetVisibility(false);
|
||||||
} else {
|
} else {
|
||||||
UpdateSelectionCarets();
|
UpdateSelectionCarets();
|
||||||
|
@ -905,7 +907,7 @@ SelectionCarets::AsyncPanZoomStopped(const mozilla::CSSIntPoint aScrollPos)
|
||||||
void
|
void
|
||||||
SelectionCarets::ScrollPositionChanged()
|
SelectionCarets::ScrollPositionChanged()
|
||||||
{
|
{
|
||||||
if (!mAPZenabled) {
|
if (!mAPZenabled && mVisible) {
|
||||||
SetVisibility(false);
|
SetVisibility(false);
|
||||||
//TODO: handling scrolling for selection bubble when APZ is off
|
//TODO: handling scrolling for selection bubble when APZ is off
|
||||||
LaunchScrollEndDetector();
|
LaunchScrollEndDetector();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче