touch/traversing: dispatch dragend event to the last touched not widget, not the first one (issue #94)

This commit is contained in:
jean-emmanuel 2017-08-29 19:22:55 +02:00
parent 99d6a04f7d
commit dba0fa367a

View file

@ -234,7 +234,7 @@
var touch = oE.changedTouches[i],
id = touch.identifier
$(oE.changedTouches[i].target).trigger('dragend',[touch,e.originalEvent.traversing])
$(targets[id]).trigger('dragend',[touch,e.originalEvent.traversing])
delete previousTouches[id]
delete targets[id]