Skip to content

Commit

Permalink
adds targetTouches and changedTouches to touchevents touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Knape committed Jun 21, 2017
1 parent c74568c commit 68c3bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const createEvent = (eventType: string = 'MouseEvent'): Function => {
// Convert passed clientX, clientY etc to a touchlist
// if event type is TouchEvent
if (eventType === 'TouchEvent' && !props.touches.length) {
const { touches } = createTouch(element, options);
props.touches = touches;
const touches = createTouch(element, options);
Object.assign(props, touches);
}

// Lets create the event
Expand Down

0 comments on commit 68c3bb7

Please sign in to comment.