mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Merge pull request #1314 from kalina559/feature/case_1282_calendar_bug
Fixed edit history calendar bug
This commit is contained in:
@@ -87,7 +87,7 @@ class HistoryChart(
|
|||||||
val col = ((x - padding) / squareSize).toInt()
|
val col = ((x - padding) / squareSize).toInt()
|
||||||
val row = ((y - padding) / squareSize).toInt()
|
val row = ((y - padding) / squareSize).toInt()
|
||||||
val offset = col * 7 + (row - 1)
|
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)
|
val clickedDate = topLeftDate.plus(offset)
|
||||||
if (clickedDate.isNewerThan(today)) return
|
if (clickedDate.isNewerThan(today)) return
|
||||||
if (isLongClick) {
|
if (isLongClick) {
|
||||||
|
|||||||
Reference in New Issue
Block a user