add gesture state into PYViewEvent