Skip to content

Commit

Permalink
Extend the check for webkit prefixed pointer props
Browse files Browse the repository at this point in the history
 + webkitRadiusX/Y
 + webkitRotationAngle

Re: #279
  • Loading branch information
taye committed Sep 9, 2015
1 parent 99b3ad8 commit 195cfe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,12 @@
return dest;
}

var webkitUnprefixedRE = /(Movement[XY]|Radius[XY]|RotationAngle)$/;

function pointerExtend (dest, source) {
for (var prop in source) {
if (prop !== 'webkitMovementX' && prop !== 'webkitMovementY') {
if (prop.indexOf('webkit') === -1
|| !webkitUnprefixedRE.test(prop)) {
dest[prop] = source[prop];
}
}
Expand Down

0 comments on commit 195cfe9

Please sign in to comment.