I have found the following issue in the Manual of the A7.
Quote:
EVENT_RELEASE and EVENT_BUTTONUP can be used to distinguish whether functionOff was triggered by leaving the button area or releasing the mouse button.

I think the functionOff should replace with another function name.
I checked it in the Online Manual of A8, the issue is the same.