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:
eehouse 2010-06-04 03:47:46 +00:00
parent 9b81a668ad
commit 57013a9267

View file

@ -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 */