Closed crawler closed 1 year ago
JS alert control is ignoring touches when it showed from callback. Tested on iOS 7 Prove: http://jsbin.com/jefahireyowu/1/
function scanBarcode(code) { alert(code); }
<a href="p2spro://scan?callback=javascript:scanBarcode('CODE')&formats=QR">SCAN</a>
And this can be solved by adding timeout:
function scanBarcode(code) { setTimeout(function() { alert(code); }, 1); }
Thank you! This will be fixed in the upcoming update.
JS alert control is ignoring touches when it showed from callback. Tested on iOS 7 Prove: http://jsbin.com/jefahireyowu/1/
And this can be solved by adding timeout: