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
1. sayfa (Toplam 1 sayfa)
xSaber
1 year ago
- xSaber
- Mesajlar: 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. 1 year ago
-
Nate - Mesajlar: 12213
Mark topic unread
• 1. sayfa (Toplam 1 sayfa)
Dön Runtimes
- Tüm zamanlar UTC