Open GoogleCodeExporter opened 8 years ago
[deleted comment]
Please review this patch:
// Disable other elements
$(elem).parentsUntil('#svgcontent > g').andSelf().siblings().each(function() {
var opac = this.getAttribute('opacity') || 1;
// Store the original's opacity
elData(this, 'orig_opac', opac);
this.setAttribute('opacity', opac * .33);
this.setAttribute('style', 'pointer-events: none');
disabled_elems.push(this);
});
Original comment by hajdua...@gmail.com
on 30 Oct 2012 at 8:08
Seems like a bug in Chrome. The style overrides in svg-editor.js
$('#styleoverrides').text('#svgcanvas svg *{cursor:move;pointer-events:all}
#svgcanvas svg{cursor:default}');
Are overriding the <g style="pointer-events: none">.
I'll have to investigate further in order to find a good solution.
Original comment by duopi...@gmail.com
on 28 Nov 2012 at 8:07
As far as I know -- and tested recently -- scoped="scoped" is not supported in
any browser. So the styles will apply outside of the scoped element.
Don't know if that will help, just calling #styleoverrides out.
Original comment by asyazwan
on 29 Nov 2012 at 3:06
The above fixes solved this problem in my project.
Original comment by hajdua...@gmail.com
on 29 Nov 2012 at 8:01
Original issue reported on code.google.com by
hajdua...@gmail.com
on 24 Aug 2012 at 8:17