From f1f8ced0b8ec170802b93777cf79fdabb48cacd3 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Mon, 29 Jul 2024 20:32:38 -0700
Subject: I feel like I might have it?
---
public/assets/images/pointer-events-test.svg | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'public')
diff --git a/public/assets/images/pointer-events-test.svg b/public/assets/images/pointer-events-test.svg
index 59735f2..1d27986 100644
--- a/public/assets/images/pointer-events-test.svg
+++ b/public/assets/images/pointer-events-test.svg
@@ -21,6 +21,8 @@
{
console.log('child', child, 'belongs to', store.get(child));
console.log('relatedTarget', e.relatedTarget);
- if (store.get(child) !== g || !e.relatedTarget) {
+ if (!e.relatedTarget || store.get(child) !== g || e.relatedTarget !== child) {
console.log('returning to', store.get(child));
store.get(child).append(child);
store.delete(child);
--
cgit v1.2.3