events: misc guard

This commit is contained in:
jean-emmanuel 2023-04-22 19:26:40 +02:00
parent fae6448a5b
commit dfabf25223

View file

@ -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) {