Changeset 242078 in webkit
- Timestamp:
- Feb 26, 2019, 12:00:26 AM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/LogContentView.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r242077 r242078 1 2019-02-26 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Console: dragging a selection outside the selected element clears the selection 4 https://bugs.webkit.org/show_bug.cgi?id=194660 5 <rdar://problem/46719239> 6 7 Reviewed by Joseph Pecoraro. 8 9 * UserInterface/Views/LogContentView.js: 10 (WI.LogContentView.prototype._mousemove): 11 Don't clear the selection if the target of the "mousemove" is outside of the view. 12 13 (WI.LogContentView.prototype._updateMessagesSelection): 14 Drive-by: clear the saved selected messages when we're just selecting a single message. 15 1 16 2019-02-25 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js
r242018 r242078 533 533 if (!wrapper) { 534 534 // No wrapper under the mouse, so look at the selection to try and find one. 535 if (!selection.isCollapsed) { 536 wrapper = selection.focusNode.parentNode.enclosingNodeOrSelfWithClass(WI.LogContentView.ItemWrapperStyleClassName); 535 if (!selection.isCollapsed) 536 wrapper = selection.focusNode.enclosingNodeOrSelfWithClass(WI.LogContentView.ItemWrapperStyleClassName); 537 538 if (!wrapper) { 537 539 selection.removeAllRanges(); 540 return; 538 541 } 539 540 if (!wrapper)541 return;542 542 } 543 543 … … 546 546 547 547 if (wrapper === this._mouseDownWrapper && !this._mouseMoveIsRowSelection) 548 return; 549 550 // Don't change the selection if the mouse has moved outside of the view (e.g. for faster scrolling). 551 if (!this.element.contains(event.target)) 548 552 return; 549 553 … … 658 662 message.classList.add(WI.LogContentView.SelectedStyleClassName); 659 663 this._selectedMessages.push(message); 664 this._selectionRange = null; 660 665 } 661 666
Note:
See TracChangeset
for help on using the changeset viewer.