mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913756 - Text Selection Handles displayed from position in previously navigated screen, r=margaret
This commit is contained in:
parent
77b0b7658e
commit
aac5d14e31
@ -510,7 +510,9 @@ var SelectionHandler = {
|
||||
// Remove our listener before we clear the selection
|
||||
selection.QueryInterface(Ci.nsISelectionPrivate).removeSelectionListener(this);
|
||||
// Clear selection without clearing the anchorNode or focusNode
|
||||
selection.collapseToStart();
|
||||
if (selection.rangeCount != 0) {
|
||||
selection.collapseToStart();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user