instascan icon indicating copy to clipboard operation
instascan copied to clipboard

Scanned object is being inverted

Open alson-how opened this issue 5 years ago • 2 comments

Hi there, when I scan the qr code, the screen is inverted from left to right. How can I fix this? Thank you

alson-how avatar Aug 28 '18 07:08 alson-how

The constructor accepts a mirror option which flips the video horizontally when set to true. The default is true but it sounds like you want it set to false instead.

const scanner = new Instascan.Scanner({ 
    mirror: false,
    // ... other options
});

mminer avatar Sep 04 '18 16:09 mminer

The constructor accepts a mirror option which flips the video horizontally when set to true. The default is true but it sounds like you want it set to false instead.

const scanner = new Instascan.Scanner({ 
    mirror: false,
    // ... other options
});

You saved my life... Thanks

CrazyIFriT avatar Sep 24 '19 11:09 CrazyIFriT