elevate method _logGestureStateChange, fix bug in it.