Fixed an issue where resizing an element would set stroke="null" on it.
This commit is contained in:
@@ -1305,7 +1305,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
|
|||||||
var _stroke = ele.getAttributeNS(null, 'stroke');
|
var _stroke = ele.getAttributeNS(null, 'stroke');
|
||||||
ele.removeAttributeNS(null, 'stroke');
|
ele.removeAttributeNS(null, 'stroke');
|
||||||
//Re-apply stroke after delay. Anything higher than 1 seems to cause flicker
|
//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';
|
mouse_target.style.vectorEffect = 'non-scaling-stroke';
|
||||||
|
|||||||
Reference in New Issue
Block a user