Commit 729f978
authored
fix(world): clean up dynamicAnchor listener on dispose (#767)
The dynamicAnchor setter never assigned _dynamicAnchor, so the getter always
returned false, and dispose never removed the pointerdown listener, keeping the
whole world alive (a leak visible on React remounts). Assign the flag and remove
the listener on dispose.
Co-authored-by: ShaMan123 <34343793+ShaMan123@users.noreply.github.com>1 parent 3bae4de commit 729f978
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
237 | 245 | | |
238 | 246 | | |
239 | 247 | | |
| |||
0 commit comments