Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Work around event retargeting bug in chrome: https://crbug.com/370136
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 5, 2014
1 parent 6692371 commit e334336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core-iconset-svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@
if (icon) {
var content = icon.cloneNode(true);
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
svg.setAttribute('viewBox', '0 0 ' + this.iconSize + ' ' +
svg.setAttribute('viewBox', '0 0 ' + this.iconSize + ' ' +
this.iconSize);
// NOTE(dfreedm): work around https://crbug.com/370136
svg.style.pointerEvents = 'none';
svg.appendChild(content);
return svg;
}
Expand Down

0 comments on commit e334336

Please sign in to comment.