Fixed an issue where resizing an element would set stroke="null" on it.

master
KB Jørgensen 2016-10-12 10:24:10 +02:00
parent 5c5c90e75b
commit b2469d27d5
1 changed files with 1 additions and 1 deletions

View File

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