From 1547b35b141e36c765ada9dbc934fc0bf931eca1 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Thu, 2 Apr 2026 08:15:35 +0000 Subject: [PATCH] feat(pos): scroll automatico al catalogo al seleccionar motor Co-Authored-By: Claude Opus 4.6 (1M context) --- pos/static/js/catalog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pos/static/js/catalog.js b/pos/static/js/catalog.js index 1a6c02b..dd4538c 100644 --- a/pos/static/js/catalog.js +++ b/pos/static/js/catalog.js @@ -934,6 +934,12 @@ state.level = 'categories'; loadCategories(); + + // Scroll to catalog content + setTimeout(function () { + var body = document.getElementById('pageBody'); + if (body) body.scrollIntoView({ behavior: 'smooth', block: 'start' }); + }, 300); } function vsClearAll() {