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
Stranica: 1/1.
xSaber
8 months ago
- xSaber
- Postovi: 12
Nate
The player uses a
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-player/src/Player.ts#L555
The
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/Input.ts#L91
You would need to customize
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. 8 months ago
-
Nate - Postovi: 11863
Mark topic unread
• Stranica: 1/1.
Natrag na Runtimes
- Vremenska zona: UTC