From 2252d7b9d2bc3b3f1d2677001847eef2c6e11103 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 26 Dec 2024 20:44:38 -0800 Subject: [PATCH] Fix #948: Cannot scroll down the window in calendar view --- renderer/classes/MonthCalendar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/renderer/classes/MonthCalendar.js b/renderer/classes/MonthCalendar.js index 4ea77a7c..bf8d7087 100644 --- a/renderer/classes/MonthCalendar.js +++ b/renderer/classes/MonthCalendar.js @@ -443,8 +443,11 @@ class MonthCalendar extends BaseCalendar $('.time-cells').mousewheel(function(e, delta) { - this.scrollLeft -= (delta * 30); - e.preventDefault(); + if(this.children.length > 5) { + console.log("too long!!", this.children.length); + this.scrollLeft -= (delta * 30); + e.preventDefault(); + } }); }