mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
stop dragging before putting up miniwindow. This allows to drag
finger off of bonus hint just displayed without scrolling the screen.
This commit is contained in:
parent
9b81a668ad
commit
57013a9267
1 changed files with 4 additions and 0 deletions
|
@ -892,6 +892,7 @@ timerFiredForPen( BoardCtxt* board )
|
|||
}
|
||||
}
|
||||
board->penTimerFired = XP_TRUE;
|
||||
/* stop any dragging here */
|
||||
}
|
||||
} else if ( board->penDownObject == OBJ_SCORE ) {
|
||||
LocalPlayer* lp;
|
||||
|
@ -926,11 +927,14 @@ timerFiredForPen( BoardCtxt* board )
|
|||
}
|
||||
|
||||
if ( !!text ) {
|
||||
XP_Bool dragged;
|
||||
MiniWindowStuff* stuff = &board->miniWindowStuff[MINIWINDOW_VALHINT];
|
||||
makeMiniWindowForText( board, text, MINIWINDOW_VALHINT );
|
||||
XP_ASSERT( stuff->text == text );
|
||||
draw_drawMiniWindow(board->draw, text, &stuff->rect,
|
||||
&stuff->closure);
|
||||
dragDropEnd( board, board->penDownX, board->penDownY, &dragged );
|
||||
XP_ASSERT( !dragged );
|
||||
}
|
||||
return draw;
|
||||
} /* timerFiredForPen */
|
||||
|
|
Loading…
Reference in a new issue