xSaber

when mouse hover over player you cant scroll, how to fix this? if disable mouse pointer events (then u can), but then cant click on player to change animations etc so this method wont work

thanks for help
xSaber
  • Postovi: 12

Nate

The player uses a spine.Input to handle mouse events:
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-player/src/Player.ts#L555

The Input uses preventDefault, which is probably what is stopping the scroll event.
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/Input.ts#L91

You would need to customize Input to not do this. We'll consider a way for the player to avoid preventDefault in the future.
Avatar
Nate

Nate
  • Postovi: 11863


Natrag na Runtimes