(e)
| 584 | } |
| 585 | |
| 586 | function getEventHost (e) { |
| 587 | // on touchend event, we have to use `e.changedTouches` |
| 588 | // see http://stackoverflow.com/questions/7192563/touchend-event-properties |
| 589 | // see https://github.com/bevacqua/dragula/issues/34 |
| 590 | if (e.targetTouches && e.targetTouches.length) { |
| 591 | return e.targetTouches[0]; |
| 592 | } |
| 593 | if (e.changedTouches && e.changedTouches.length) { |
| 594 | return e.changedTouches[0]; |
| 595 | } |
| 596 | return e; |
| 597 | } |
| 598 | |
| 599 | function getCoord (coord, e) { |
| 600 | var host = getEventHost(e); |
no outgoing calls
no test coverage detected
searching dependent graphs…