index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-29 20:32:38 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-29 20:32:38 -0700 |
commit | f1f8ced0b8ec170802b93777cf79fdabb48cacd3 (patch) | |
tree | d935071c2ce47234091818516842988349a10714 | |
parent | 1cde86fe2a6985ac98bb276c9d08981de6318874 (diff) |
I feel like I might have it?
-rw-r--r-- | public/assets/images/pointer-events-test.svg | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ <style> rect { fill: inherit; + stroke: black; + stroke-width: 0.25px; } g use { fill: gray; @@ -40,7 +42,7 @@ /*}*/ g#out circle { fill: orange; - /*transform: scale(3);*/ + transform: scale(3); } </style> <g @@ -1586,7 +1588,7 @@ [...out.children].forEach(child => { 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); |