use different threshold for touch and mouse w.r.t. edge selection