share code between pointeron and pointermove

Created by  Bowei Liu  on December 31, 2020
Y2CZ47AVZ6MRYOV7JC4OTYONIT3OW7MMO7C5TAWDND53PKXY7KOQC
Change contents