INNER CODE UNIT · JavaScript
dt
wonday/react-native-pdf · DoubleTapView.js:66
const dt = currentTouchTimeStamp - prevTouchTimeStamp;
const {delay, radius} = this.props;
return (prevTouchTimeStamp > 0 && dt < delay && this.distance(prevTouchX, prevTouchY, x0, y0) < radius);
};
handlePanResponderRelease = (evt, gestureState) => {
const currentTouchTimeStamp = Date.now();
const x = evt.nativeEvent.locationX;
const y = evt.nativeEvent.locationY;
if (this.timer) {
if (this.isDoubleTap(currentTouchTimeStamp, gestureState)) {
clearTimeout(this.timer);
this.timer = null;