summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 19:06:30 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 19:06:38 +0300
commit6b918195fdb3ce77a26821b780358ede5746d089 (patch)
treee50b8f04b057536c7573641bbe126b9db5b2d51a /src/ui
parent56e19d82be22205141ad9f2585665f2f7111dd22 (diff)
ListWidget: Larger folder drop target
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/listwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index ca15cc20..68ebc377 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -331,7 +331,7 @@ static size_t resolveDragDestination_ListWidget_(const iListWidget *d, iInt2 dst
331 const iRect rect = itemRect_ListWidget(d, index); 331 const iRect rect = itemRect_ListWidget(d, index);
332 const iRangei span = ySpan_Rect(rect); 332 const iRangei span = ySpan_Rect(rect);
333 if (item->isDropTarget) { 333 if (item->isDropTarget) {
334 const int pad = size_Range(&span) / 3; 334 const int pad = size_Range(&span) / 4;
335 if (dstPos.y >= span.start + pad && dstPos.y < span.end - pad) { 335 if (dstPos.y >= span.start + pad && dstPos.y < span.end - pad) {
336 *isOnto = iTrue; 336 *isOnto = iTrue;
337 return index; 337 return index;