Update dragend.js

With this modification it fixes the bug related to repositioning the slide back to the original place if a backwards swipe doesn't reach the threshold, as this bug doesn't occur when swiping forward, but it does when sliding back.