Fix getSelection not working in QueryParser

This commit is contained in:
toasted-nutbread 2020-04-10 17:11:41 -04:00
parent f177e3699a
commit 2c5bf0ed6b

View File

@ -134,7 +134,7 @@ class TextScanner {
this.preventNextClick = false;
const primaryTouch = e.changedTouches[0];
if (DOM.isPointInSelection(primaryTouch.clientX, primaryTouch.clientY, this.node.getSelection())) {
if (DOM.isPointInSelection(primaryTouch.clientX, primaryTouch.clientY, window.getSelection())) {
return;
}