Skip to content

Commit 97353b4

Browse files
committed
Update searchJumper.user.js
1 parent 009f50c commit 97353b4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

searchJumper.user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@
20512051
}
20522052
#search-jumper-alllist>.dayInAll {
20532053
left: 50px;
2054-
font-size: ${lang.indexOf("zh") == 0 ? '1.5' : '2'}vw;
2054+
font-size: ${(lang.indexOf("zh") == 0 || lang.indexOf("ja") == 0) ? '1.5' : '2'}vw;
20552055
}
20562056
#search-jumper-alllist>.timeInAll {
20572057
right: 50px;
@@ -4258,7 +4258,6 @@
42584258
alllist.addEventListener(getSupportWheelEventName(), e => {
42594259
self.tips.style.display = "none";
42604260
clearTimeout(self.requestShowTipsTimer);
4261-
if (e.target != alllist && e.target != showallBg && e.target != sitelistBox) return;
42624261
if (alllist.classList.contains("new-mode")) return;
42634262
var deltaX, deltaY;
42644263
if(e.type !== 'wheel'){
@@ -4283,10 +4282,11 @@
42834282
deltaX = e.deltaX;
42844283
deltaY = e.deltaY;
42854284
}
4285+
if (e.target != alllist && e.target != showallBg && e.target != sitelistBox && deltaY) return;
42864286
e.preventDefault();
42874287
e.stopPropagation();
42884288

4289-
alllist.scrollLeft += deltaY;
4289+
alllist.scrollLeft += (deltaX || deltaY);
42904290
}, { passive: false, capture: false });
42914291

42924292

@@ -6853,7 +6853,7 @@
68536853
let now = new Date();
68546854
let year = now.getFullYear(), month = now.getMonth(), date = now.getDate();
68556855
let dayLabelStr = i18n(days[now.getDay()]) + "<br/>" + year + '-' + (++month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date);
6856-
if (lang.indexOf("zh") == 0) {
6856+
if (lang.indexOf("zh") == 0 || lang.indexOf("ja") == 0) {
68576857
let lunar = sloarToLunar(year, month, date);
68586858
if (lunar) {
68596859
let lunarStr = `${lunar.lunarYear}年${lunar.lunarMonth}月${lunar.lunarDay}`;
@@ -6872,6 +6872,7 @@
68726872
if (type.style.display != 'none') {
68736873
let sitelist = type.querySelector('.sitelist');
68746874
if (sitelist) {
6875+
sitelist.style.opacity = "";
68756876
self.sitelistBox.appendChild(sitelist);
68766877
self.initList(sitelist);
68776878
}

0 commit comments

Comments
 (0)