html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

[Feature Request] Support ondevice rotation in Mobile devices

Open mebjas opened this issue 5 years ago • 7 comments

The library doesn't adapt to orientation changes or size changes of the browser tab. Which distorts the whole UI in case of rotation

For example this is the visible UI in case auto rotate is on on an Android device and the device is rotated after the UI has rendered

image

Similar observed for IOS device image

mebjas avatar May 08 '20 07:05 mebjas

oh ok: is this a major issue? I have disabled orientation on all my personal devices, thus never tested this 😄

OneDivZero avatar May 10 '20 17:05 OneDivZero

@OneDivZero Not sure if this is a major issue - no one has reported this so far, but I have seen this while developing.

mebjas avatar May 11 '20 01:05 mebjas

@mebjas this is a major issue for production cases..

doTeam avatar Jul 18 '20 07:07 doTeam

Thanks for the feedback @doTeam - I'll priotize this.

mebjas avatar Jul 19 '20 06:07 mebjas

I'm facing the same problem when screen rotates or being resized.

I was wondering if it is just a shaded region dimensions issue? If it so, is there any function which update this one depending of the new container size?

Timer91 avatar Nov 17 '21 16:11 Timer91

Is there any update thus far to fix this issue?

k3ithloh avatar May 18 '23 08:05 k3ithloh

Any news on this one ? At least, it should allow to quickly refesh aspect-ratio and qrBox so that we can refresh them on any rotation of a screen. (Or even on screen resize)

benjaminbra avatar Sep 04 '25 10:09 benjaminbra