IE 10 compat, use a generic function for drag events