Prevent popup from being shown for popup text

This commit is contained in:
Alex Yatskov 2016-04-10 22:04:58 -07:00
parent 8b59580652
commit bf7c476a72

View File

@ -88,6 +88,11 @@ class Client {
return; return;
} }
if (this.popup.contains(range.startContainer)) {
this.hidePopup();
return;
}
const rect = getRangePaddedRect(range); const rect = getRangePaddedRect(range);
if (point.x < rect.left || point.x > rect.right) { if (point.x < rect.left || point.x > rect.right) {
this.hidePopup(); this.hidePopup();