Skip to content

Commit 17e5336

Browse files
committed
xmb: fix scrolling while dragging in margin
1 parent 1e74653 commit 17e5336

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

menu/drivers/xmb.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7007,9 +7007,11 @@ static void xmb_render(void *data,
70077007
/* Areas beyond the top/right margins are used
70087008
* as a sort of virtual dpad:
70097009
* - Above top margin: navigate left/right
7010-
* - Beyond right margin: navigate up/down */
7011-
if ( (pointer_y < margin_top)
7012-
|| (pointer_x > margin_right))
7010+
* - Beyond right margin: navigate up/down
7011+
* Skip during drag operations to avoid fighting with drag scrolling */
7012+
if ( (xmb->drag_mode == XMB_DRAG_NONE)
7013+
&& ((pointer_y < margin_top)
7014+
|| (pointer_x > margin_right)))
70137015
{
70147016
menu_entry_t entry;
70157017
bool get_entry = false;

0 commit comments

Comments
 (0)