I am trying to make a custom joystick.
I’ve checked the documentation and implemented it as I want but with one exception.
I want to “puck” to still move on the thumb container, even when you move outside it.
so, I will try to explain the desired behaviour:
- You press down on the thumContainer -> it sets a flag to true (isPointerDown)
- You move your thumb (while it’s still down) -> it changes the position of the puck -< EVEN if you are moving it outside
- You press up anywhere -> it sets the flag to false.
I hope it’s clear enough.
You can see this demo (which is basically what’s in the documentation with clipContent = false and clipChildren = false):
It does everything I mentioned above but the part that it also captures the pointer move outside and effects the puck.
Would like to have some help here.