i fixed it by adding a timer of 3 seconds after which the variable _isDragging is set to false
(you can see the changes i did on github)