fix: scroll to qrcode
All checks were successful
Deploy QR Rapido / test (push) Successful in 2m9s
Deploy QR Rapido / build-and-push (push) Successful in 13m5s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Successful in 1m50s

This commit is contained in:
Ricardo Carneiro 2025-08-11 20:35:57 -03:00
parent 33c6dc76c0
commit 3feddbea11

View File

@ -445,6 +445,7 @@ class QRRapidoGenerator {
this.displayQRResult(result, generationTime); this.displayQRResult(result, generationTime);
this.updateSpeedStats(generationTime); this.updateSpeedStats(generationTime);
this.trackGenerationEvent(requestData.data.type || requestData.data.get('type'), generationTime); this.trackGenerationEvent(requestData.data.type || requestData.data.get('type'), generationTime);
this.smoothScrollToQRArea();
} catch (error) { } catch (error) {
console.error('❌ Erro ao gerar QR:', error); console.error('❌ Erro ao gerar QR:', error);
@ -1725,7 +1726,7 @@ class QRRapidoGenerator {
let targetElement; let targetElement;
// Find the QR preview area or advanced options // Find the QR preview area or advanced options
const qrPreview = document.getElementById('qr-result'); const qrPreview = document.getElementById('qr-preview');
const advancedSection = document.querySelector('.advanced-options'); const advancedSection = document.querySelector('.advanced-options');
const generateBtn = document.getElementById('generate-btn'); const generateBtn = document.getElementById('generate-btn');
const toast = document.getElementById('content-added-toast'); const toast = document.getElementById('content-added-toast');