Merge pull request #142 from iuyiuy/null_stroke_fix
Fixed an issue where resizing an element would set stroke="null" on it.master
commit
627d038e33
|
@ -1309,7 +1309,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';
|
||||
|
|
Loading…
Reference in New Issue