fix move events outside the element, add a threshold for up/down etc events