Merge pull request #1314 from kalina559/feature/case_1282_calendar_bug

Fixed edit history calendar bug
This commit is contained in:
2022-03-10 06:05:04 -06:00
committed by GitHub

View File

@@ -87,7 +87,7 @@ class HistoryChart(
val col = ((x - padding) / squareSize).toInt()
val row = ((y - padding) / squareSize).toInt()
val offset = col * 7 + (row - 1)
if (row == 0 || col == nColumns) return
if (x - padding < 0 || row == 0 || row > 7 || col == nColumns) return
val clickedDate = topLeftDate.plus(offset)
if (clickedDate.isNewerThan(today)) return
if (isLongClick) {