瀏覽代碼

swipe to scroll Explore on mobile

jelveh 5 月之前
父節點
當前提交
3c9a6b9d19
共有 1 個文件被更改,包括 28 次插入1 次删除
  1. 28 1
      src/gui/src/css/style.css

+ 28 - 1
src/gui/src/css/style.css

@@ -4665,4 +4665,31 @@ fieldset[name=number-code] {
 
 .device-phone .desktop * {
     touch-action: pan-x;
-}
+}
+
+.device-phone .desktop::-webkit-scrollbar {
+    display: none;
+}
+
+.device-phone .window-body.item-container{
+    /* Enable smooth scrolling on iOS */
+    -webkit-overflow-scrolling: touch;
+
+    /* Allow vertical touch scrolling while preventing horizontal */
+    touch-action: pan-y;
+    
+    /* Base dimensions */
+    width: 100%;
+    height: 100%;
+    
+    /* Scrolling behavior */
+    overflow-y: scroll;
+    overflow-x: hidden;
+
+    /* Hide scrollbars while keeping functionality */
+    scrollbar-width: none;
+    -ms-overflow-style: none;
+}
+.device-phone .window-body.item-container * {
+    touch-action: pan-y;
+}