Tresjs / tres

Declarative ThreeJS using Vue Components
https://tresjs.org
MIT License
2.27k stars 107 forks source link

TresGroups Pointer events missing #426

Closed alvarosabu closed 9 months ago

alvarosabu commented 1 year ago

Describe the bug

Pointer events on <TresGroup> are not working, clicking on the children should trigger a click event

Reproduction

https://stackblitz.com/edit/tresjs-basic-bivxri?file=README.md,src%2Fcomponents%2FTheExperience.vue

Steps to reproduce

Add a pointer event to a <TresGroup>

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.9.2 - /usr/local/bin/pnpm
  npmPackages:
    @tresjs/cientos: ^3.5.1 => 3.5.1 
    @tresjs/core: ^3.4.1 => 3.4.1 
    @tresjs/eslint-config-vue: ^0.2.1 => 0.2.1 
    vite: ^4.5.0 => 4.5.0 


### Used Package Manager

pnpm

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://tresjs.org/guide).
- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
CptJJ commented 10 months ago

Is there any progress on this?

garrlker commented 10 months ago

@CptJJ hey, I've got a draft PR up here

@Tinoooo is going to review it when he has time. Feel free to pull and test my branch locally by running the playground

garrlker commented 9 months ago

The scope of this issue grew quite a bit and this will be handled in a another PR I'm working on for #515