for (MouseDownEventLog log : pointerDownEvents) {
MouseUpEventArgs args = new MouseUpEventArgs(screenX, screenY, screenX - log.getScreenX(),
screenY - log.getScreenY(), altPressed, ctrlPressed, shiftPressed, metaPressed, log.getComponent());
log.getComponent().onMouseUp.fireEvent(args);
if (stamp - log.getTimeStamp() < 500) {
log.getComponent().onClick.fireEvent(new ClickEventArgs(screenX, screenY, log.getX(), log.getY(),
altPressed, ctrlPressed, shiftPressed, metaPressed, log.getComponent()));
}
}
pointerDownEvents.clear();
}