Skip to content

Commit

Permalink
Fix #948: Cannot scroll down the window in calendar view
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve committed Dec 27, 2024
1 parent f67d281 commit 2252d7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions renderer/classes/MonthCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
}

Expand Down

0 comments on commit 2252d7b

Please sign in to comment.