AutoScroll icon indicating copy to clipboard operation
AutoScroll copied to clipboard

Scrolling SVG images doesn't work

Open woky opened this issue 10 years ago • 2 comments

For instance, on load of this URL https://upload.wikimedia.org/wikipedia/commons/1/1a/SVG_example_markup_grid.svg the following error is reported:

Error in response to storage.get: TypeError: Cannot read property 'setProperty' of undefined
    at Object.callback (chrome-extension://occjjkgifpmdgodlplnacmkejpdionan/data/AutoScroll.js:165:14)
    at chrome-extension://occjjkgifpmdgodlplnacmkejpdionan/data/AutoScroll.js:4:22

OTOH, scrolling PNG images seems to work just fine.

woky avatar Dec 06 '15 05:12 woky

Thanks for reporting this.

It seems that it's rather difficult to display HTML nodes inside of SVG.

So, I might not be able to fix this.

Pauan avatar Dec 06 '15 22:12 Pauan

I just released version 4.6 of AutoScroll, which adds in partial support for SVG.

It is now possible to scroll SVG documents.

However, the circular icon does not show up.

The reason is because SVG does not allow for positioning elements absolutely or in fixed position.

Pauan avatar Jan 09 '16 04:01 Pauan