add PAN_THRESHOLD when detecting hold_pan gesture

This should fix #383.