[#41015711] add log gesture and clean some code