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; }
bool FBView::onStylusRelease(int x, int y) { if (ZLTextView::onStylusRelease(x, y)) { return true; } if (_onStylusRelease(x, y)) { return true; } myIsReleasedWithoutMotion = myIsReleasedWithoutMotion && (abs(x - pressedX()) <= 5) && (abs(y - pressedY()) <= 5); if (isReleasedWithoutMotion() && fbreader().EnableTapScrollingOption.value() && (!ZLBooleanOption(ZLCategoryKey::EMPTY, ZLOption::PLATFORM_GROUP, ZLOption::FINGER_TAP_DETECTABLE, false).value() || !fbreader().TapScrollingOnFingerOnlyOption.value())) { doTapScrolling(y); return true; } return false; }
bool FBView::onFingerTap(int, int y) { doTapScrolling(y); return true; }