Update svgcanvas.js

master
Jeff Schiller 2016-11-11 10:08:38 -08:00 committed by GitHub
parent b2469d27d5
commit 8f73ae16bb
1 changed files with 2 additions and 2 deletions

View File

@ -1304,8 +1304,8 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
var delayedStroke = function(ele) {
var _stroke = ele.getAttributeNS(null, 'stroke');
ele.removeAttributeNS(null, 'stroke');
//Re-apply stroke after delay. Anything higher than 1 seems to cause flicker
if(_stroke !== null) setTimeout(function() { ele.setAttributeNS(null, 'stroke', _stroke); }, 0);
// Re-apply stroke after delay. Anything higher than 1 seems to cause flicker
if (_stroke !== null) setTimeout(function() { ele.setAttributeNS(null, 'stroke', _stroke); }, 0);
};
}
mouse_target.style.vectorEffect = 'non-scaling-stroke';