Fixed an issue where resizing an element would set stroke="null" on it.
parent
5c5c90e75b
commit
b2469d27d5
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue