Index: third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
index b8edc115a9ee4291e06b2e6009042ec172aa4131..6a79013a74e3f818b0a5ebc7d106f3706c76026f 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
@@ -287,7 +287,7 @@ WebInspector.ViewportControl.prototype = { |
_updateSelectionModel: function(selection) |
{ |
var range = selection && selection.rangeCount ? selection.getRangeAt(0) : null; |
- if (!range || selection.isCollapsed) { |
+ if (!range || selection.isCollapsed || !this.element.hasSelection()) { |
this._headSelection = null; |
this._anchorSelection = null; |
return false; |