index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'public/assets')
-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); |