1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00
This commit is contained in:
Kevin Levron 2021-04-03 11:19:13 +02:00
parent 1da38e4884
commit 9214198e62

View File

@ -196,7 +196,7 @@ export default function useThree() {
intersectObjects.splice(i, 1);
}
// remove listeners if needed
if (obj.pointer && !conf.use_pointer && intersectObjects.length === 0) {
if (obj.pointer && !conf.pointer && intersectObjects.length === 0) {
obj.pointer.removeListeners();
}
}