From 5dbd5457d9971d4bdd1c6dd66e672dbab2bf0e3d Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 3 Apr 2016 00:20:53 +0800 Subject: [PATCH] scroll --- game/game.js | 3 +++ layout/default/layout.css | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index 23f024a70..cab76e5fc 100755 --- a/game/game.js +++ b/game/game.js @@ -3770,6 +3770,9 @@ } }(node)),i*100); } + if(lib.config.mousewheel){ + splash.onmousewheel=ui.click.mousewheel; + } } else{ proceed(); diff --git a/layout/default/layout.css b/layout/default/layout.css index 03b3b4b5f..932106b93 100755 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -43,17 +43,20 @@ table{table-layout: fixed;} #window.noclick_important .noclick_click_important div{pointer-events: auto !important} #splash{ width:100%; - height: 300px; + height: 100%; left:0; - top:calc(50% - 150px); + top:0; position: absolute; text-align: center; overflow: visible; transition: all 0.3s; + overflow-x: scroll; + white-space: nowrap; } #splash>div{ width:100px; - height:100%; + height:300px; + top:calc(50% - 150px); margin-left:10px; margin-right:10px; position: relative;