Update gesture handler and constants.