fabricjs-viewport icon indicating copy to clipboard operation
fabricjs-viewport copied to clipboard

Zoom does not work on background image.

Open carlos-da-costa opened this issue 9 years ago • 2 comments

When you set up a background image using setBackgroundImage the image is not zoomed, only the contents.

carlos-da-costa avatar Mar 10 '15 20:03 carlos-da-costa

That's the way background/overlay images work in fabric i.e. they're not part of the contents. In fact, I'd go so far as to say that background/overlay images are useless in fabric.

I ended up adding a background image as a layer and making it non-interactive, which works well.

cmawhorter avatar Mar 11 '15 22:03 cmawhorter

Yeah, I did this too. It works as expected. So the background really gets useless in this context as we have this easy workaround. Thanks!

carlos-da-costa avatar Mar 11 '15 23:03 carlos-da-costa