Add new parameters (dragDistance, lockX, lockY, boundTo) and fix dragDelay

Everything you need to know is detailled in the commits message.
I needed these new parameters for a project. And i thought that the community will be happy yo have these to.
 
If you have any remarks or question, feel free to ask! I'll be glad to answer you.