There is an issue with iOS zooming in when focusing on the hiddenTextarea while editing an iText object. I have described this more in depth with the fix within the following pull request: https://github.com/kangax/fabric.js/pull/4240
1.7.6
Edit iText layer on iOS device.
No zooming into the canvas.
The browser zooms directly into the canvas making the entire viewport undecipherable.
I am closing this issue.
Read about what is happening, why it's happening & how it can be solved here:
https://github.com/kangax/fabric.js/pull/4240#issuecomment-333182396
As this is the first result on googling the issue, I'd like to share how I solved it:
canvas.on('text:editing:entered', function (props) {
const text = props.target;
text.hiddenTextarea.style.height = text.fontSize + 'px';
text.hiddenTextarea.style.width = '0px';
text.hiddenTextarea.style['caret-color'] = 'transparent';
text.hiddenTextarea.style['font-size'] = '16px';
});
The caret-color css property should be supported on all major browsers.
Most helpful comment
As this is the first result on googling the issue, I'd like to share how I solved it:
The
caret-colorcss property should be supported on all major browsers.