events: misc guard
This commit is contained in:
parent
fae6448a5b
commit
dfabf25223
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ const domObserver = new MutationObserver(function(mutations) {
|
|||
var event = previousPointers[id],
|
||||
target = targets[id]
|
||||
|
||||
if (event.pointerType === 'mouse') continue
|
||||
if (!event || event.pointerType === 'mouse') continue
|
||||
|
||||
for (var mutation of mutations) {
|
||||
for (var node of mutation.removedNodes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue