Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Set buttons to undefined by default to catch lack of event.buttons su…
Browse files Browse the repository at this point in the history
…pport in PointerEvent constructor

Need to copy event.which to facilitate this
  • Loading branch information
dfreedm committed Oct 10, 2013
1 parent 6fd360b commit 6e9b6d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
// event instance
'type',
'target',
'currentTarget'
'currentTarget',
'which'
];

var CLONE_DEFAULTS = [
Expand All @@ -56,7 +57,7 @@
0,
null,
// DOM Level 3
0,
undefined,
// PointerEvent
0,
0,
Expand All @@ -70,7 +71,8 @@
// event instance
'',
null,
null
null,
0
];

/**
Expand Down

0 comments on commit 6e9b6d1

Please sign in to comment.