(nl: NodeList)
| 69 | const MOUSE_MOVE_THROTTLE_TIME_MS = 10; |
| 70 | |
| 71 | function hasRowElement(nl: NodeList) { |
| 72 | for (let i = 0; i < nl.length; i++) { |
| 73 | const el = nl[i]; |
| 74 | if (!(el instanceof HTMLElement)) { |
| 75 | continue; |
| 76 | } |
| 77 | if (el.matches(ROW_SELECTOR)) { |
| 78 | return true; |
| 79 | } |
| 80 | } |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | function isRowMutation(mutation: MutationRecord): boolean { |
| 85 | return hasRowElement(mutation.addedNodes) || hasRowElement(mutation.removedNodes); |