front: Fix range check on TouchController.