[Bug fix] Reset the pointer when reaching a disabled target (input or button)