JS-OCR-demo icon indicating copy to clipboard operation
JS-OCR-demo copied to clipboard

It's upside-down in Safari!

Open kdzwinel opened this issue 6 years ago • 1 comments

I know! Crazy! No idea what's wrong though. Feel free to take a stab at it!

kdzwinel avatar Jan 21 '19 11:01 kdzwinel

I have fixed the issue.

the problem is now the desktop view gets changed. Need to put a condition to check whether the page is opened on mobile view or on the desktop platform.

code to be added before canvas image inputted to draw section

ctx.setTransform(1,0,0,-1,0,canvas.height);

see the below screenshot for better clarity.

tested on ios 11.0.1 safari iPhone xs max device

File

image

Loks2008 avatar Oct 02 '20 05:10 Loks2008