Clearing touches

A quick question: Is it possible to clear touches from the inputmodule? I have the behavior that you touch a button, the screen changes and the touch input is somehow still there triggering pointerenter behavior. I assume it might be because I disable the inputmodule during the transition and thus the touch-up doesn’t happen, so I’d like to manually clear those out.

Anyone have any pointers before I go digging?

Alright, so there’s a pair of methods:

DeactivateModule and ActivateModule.

Looking at the source of StandaloneInputModule/PointerInputModule/BaseInputModule it seems like that helps clear inputs out. Let’s see if that fixed it.

I’m surprised that these don’t seem to be called in OnEnable/OnDisable of the InputModule component but whatever.