Pointer Events in Node Scripts use the incorrect type

This issue is present in Rive Editor v0.9.21, though I’d noticed it before in other version.

I’m unsure if it is present in any of the runtimes.

Steps to reproduce:

  • Create a Node or Layout script

  • Add pointerDown, pointerDown, pointerUp, pointerExit, and pointerMove handlers.

  • Add a print statement in each of the handlers to print out the handler’s method name, and the PointerEvent.type value

  • Create an artboard and add the Node or Layout to it

  • Run the artboard and take note of the console. Note that it always says the event type is ‘pointerEvent’ while the handler methods differ.

Note: This may relate to another bug in which the pointerEvent id is always 0 and where PointerEvent:hit() functions incorrectly in handler actions, nodes, and layouts