bool FBView::onStylusMovePressed(int x, int y) { if (myIsReleasedWithoutMotion) { if ((abs(x - pressedX()) > 5) || (abs(y - pressedY()) > 5)) { myIsReleasedWithoutMotion = false; activateSelection(pressedX(), pressedY()); } } if (ZLTextView::onStylusMovePressed(x, y)) { return true; } if (_onStylusMovePressed(x, y)) { return true; } return false; }
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; }