Exemple #1
0
bool FBView::onStylusPress(int x, int y) {
	myPressedX = x;
	myPressedY = y;
	myIsReleasedWithoutMotion = true;

	if (ZLTextView::onStylusPress(x, y)) {
		return true;
	}
	
	if (_onStylusPress(x, y)) {
		return true;
	}

	return true;
}
Exemple #2
0
bool FBView::onStylusPress(int x, int y) {
	if (ZLTextView::onStylusPress(x, y)) {
		return true;
	}

	if (_onStylusPress(x, y)) {
		return true;
	}

	if (fbreader().EnableTapScrollingOption.value() &&
			(!ZLBooleanOption(ZLCategoryKey::EMPTY, ZLOption::PLATFORM_GROUP, ZLOption::FINGER_TAP_DETECTABLE, false).value() ||
			 !fbreader().TapScrollingOnFingerOnlyOption.value())) {
		doTapScrolling(y);
		return true;
	}

	activateSelection(x, y);
	return true;
}