bumbu / svg-pan-zoom

JavaScript library that enables panning and zooming of an SVG in an HTML document, with mouse events or custom JavaScript hooks
https://github.com/ariutta/svg-pan-zoom#demos
BSD 2-Clause "Simplified" License
1.76k stars 389 forks source link

Stroke size on patterns can become broken #362

Open ghost opened 4 years ago

ghost commented 4 years ago

Bug report Stroke size on patterns can become broken when the DOM changes.

Expected behaviour

When the dom changes, the SVG should still look the same

Actual behaviour

A "grid" pattern stroke size becomes incorrect after the DOM changes.

Steps to reproduce the behaviour

It's a bit strange. It can be reproduced by having the devtools window open (in chrome) and then having the DOM change. It also sometimes happens on page refreshes in my specific situation. See the example at: https://jsfiddle.net/4row8Ltn/5/

Configuration

aaronhudon commented 4 years ago

Bump - any ideas on what the fix is for this?