This commit is contained in:
Tomas Dvorak
2025-05-28 12:53:23 +02:00
parent c1f6774421
commit 7b9cafeed2
-5
View File
@@ -1654,15 +1654,10 @@ document.addEventListener('DOMContentLoaded', () => {
const position = btn.dataset.position; const position = btn.dataset.position;
currentImagePosition = position; currentImagePosition = position;
// Update hidden input field
document.getElementById('imagePosition').value = position;
// Reset position values if not custom // Reset position values if not custom
if (position !== 'custom') { if (position !== 'custom') {
currentImageX = '0'; currentImageX = '0';
currentImageY = '0'; currentImageY = '0';
document.getElementById('imagePositionX').value = '0';
document.getElementById('imagePositionY').value = '0';
} }
// Update active button styling // Update active button styling