|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
395 bytes
|
| Line | |
|---|
| 1 | import pointer from "./pointer.js";
|
|---|
| 2 | import sourceEvent from "./sourceEvent.js";
|
|---|
| 3 |
|
|---|
| 4 | export default function(events, node) {
|
|---|
| 5 | if (events.target) { // i.e., instanceof Event, not TouchList or iterable
|
|---|
| 6 | events = sourceEvent(events);
|
|---|
| 7 | if (node === undefined) node = events.currentTarget;
|
|---|
| 8 | events = events.touches || [events];
|
|---|
| 9 | }
|
|---|
| 10 | return Array.from(events, event => pointer(event, node));
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.