Make selectionContainsPoint static
This commit is contained in:
parent
a648e05091
commit
131dc8397d
@ -161,7 +161,7 @@ class Frontend {
|
||||
}
|
||||
|
||||
let touch = this.getPrimaryTouch(e.changedTouches);
|
||||
if (this.selectionContainsPoint(window.getSelection(), touch.clientX, touch.clientY)) {
|
||||
if (Frontend.selectionContainsPoint(window.getSelection(), touch.clientX, touch.clientY)) {
|
||||
touch = null;
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ class Frontend {
|
||||
}
|
||||
}
|
||||
|
||||
selectionContainsPoint(selection, x, y) {
|
||||
static selectionContainsPoint(selection, x, y) {
|
||||
for (let i = 0; i < selection.rangeCount; ++i) {
|
||||
const range = selection.getRangeAt(i);
|
||||
for (const rect of range.getClientRects()) {
|
||||
|
Loading…
Reference in New Issue
Block a user