Merge "Fix badcast in event::isGestureEvent" into klp-dev