Esempio n. 1
0
bool ZLTextView::onStylusRelease(int x, int y) {
    myDoubleClickInfo.update(x, y, false);

    if (myDoubleClickInfo.Count > 0) {
        return onStylusClick(x, y, myDoubleClickInfo.Count);
    }

    mySelectionModel.deactivate();
    return false;
}
Esempio n. 2
0
bool ZLTextView::onStylusRelease(int x, int y) {
	stopSelectionScrolling();

	myDoubleClickInfo.update(x, y, false);
	AppLog("myDoubleClickInfo.Count 1 %d", myDoubleClickInfo.Count);
	shared_ptr<ZLTextPositionIndicatorInfo> indicatorInfo = this->indicatorInfo();
	if (!indicatorInfo.isNull() &&
			(indicatorInfo->type() == ZLTextPositionIndicatorInfo::FB_INDICATOR) &&
			indicatorInfo->isSensitive() &&
			positionIndicator()->isResponsibleFor(x, y)) {
		return true;
	}
	AppLog("myDoubleClickInfo.Count 2 %d", myDoubleClickInfo.Count);
	if (myDoubleClickInfo.Count > 0) {
		return onStylusClick(x, y, myDoubleClickInfo.Count);
	}
	AppLog("myDoubleClickInfo.Count 3 %d", myDoubleClickInfo.Count);
	myTextAreaController.area().selectionModel().deactivate();
	return false;
}