add PAN_THRESHOLD when detecting hold_pan gesture
This should fix #383.
Merge pull request #389 from chrox/master

add PAN_THRESHOLD when detecting hold_pan gesture