Increase clickable height of grid icons

This commit is contained in:
Ensar Sarajčić 2023-07-16 09:33:23 +02:00
parent 2636f5666e
commit 934651e88d
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
val clickableLeft = item.left * cellWidth + sideMargins.left
val clickableTop = cellYCoords[item.top] + iconSize / 3 + sideMargins.top
return Rect(clickableLeft, clickableTop, clickableLeft + cellWidth, clickableTop + iconSize * 2)
return Rect(clickableLeft, clickableTop, clickableLeft + cellWidth, clickableTop + cellHeight - iconSize / 3)
}
// drag the center of the widget, not the top left corner