سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
UI: make scroll ownership cache-safe in live shell
davoodmehraban89 committed
Oct 2, 2026 at 12:09 UTC
c8b4bd5e2f6facde7a1fd603003dffc07741662f
1 file changed
+9
-1
index.html
+9
-1
@@ -141,6 +141,14 @@ body{background:#f6f9fc}
141
.module-panel-handle{position:fixed;z-index:325;top:50%;right:calc(var(--shell-rail) + var(--shell-panel) - 1px);transform:translate(50%,-50%);width:24px;height:54px;border:1px solid #cbd5e1;border-radius:10px 0 0 10px;background:#fff;color:#087c8a;box-shadow:0 4px 14px rgba(15,23,42,.12);cursor:pointer;font:700 20px/1 Arial,sans-serif;transition:right .2s ease,background .15s ease}
142
.module-panel-handle:hover{background:#effafb}
143
.module-panel-handle:focus-visible{outline:3px solid rgba(7,139,155,.22);outline-offset:2px}
144
+/* Critical desktop scroll ownership lives in HTML too, so a stale cached ui.js cannot restore the old mapping. */
145
+@media (min-width:821px){
146
+ html,body{height:100%;overflow-y:hidden!important}
147
+ .app-root{height:100vh;min-height:0;overflow:hidden}
148
+ .module-rail,.module-panel-links,.main-surface{direction:ltr;overscroll-behavior:contain;scrollbar-gutter:stable}
149
+ .module-rail>*,.module-panel-links>*,.main-surface>*{direction:rtl}
150
+ .main-surface{height:100vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
151
+}
152
.module-panel-links{height:calc(100vh - var(--shell-top));overflow-y:auto;padding:11px}
153
.module-group{padding:5px 0 11px;border-bottom:1px solid #f0f3f7;margin-bottom:8px}
154
.module-group:last-child{border-bottom:0}
@@ -849,7 +857,7 @@ body{background:#f6f9fc}
857
<script src="js/core.js?v=20260928-security-v4"></script>
858
<script src="js/admin.js"></script>
859
<script src="js/sync.js?v=20260928-data-v4"></script>
852
-<script src="js/ui.js?v=20260928-phase1-shell-final"></script>
860
+<script src="js/ui.js?v=20261002-shell-scroll-ownership-v2"></script>
861
<script src="js/invoices.js?v=20260928-phase3-final"></script>
862
<script src="js/print.js?v=20260928-layout-v4"></script>
863
<script src="js/products.js"></script>