Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to recognize oneTap/doubleTap at moment?
    primarykey
    data
    text
    <p>I Know filtering oneTap/doubleTap using a Apple API. code are follows.</p> <pre><code>UITapGestureRecognizer *doubleTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)]; doubleTapGestureRecognizer.numberOfTapsRequired = 2; [self addGestureRecognizer:doubleTapGestureRecognizer]; UITapGestureRecognizer *singleTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; singleTapGestureRecognizer.numberOfTapsRequired = 1; **[singleTapGestureRecognizer requireGestureRecognizerToFail: doubleTapGestureRecognizer];** [self addGestureRecognizer:singleTapGestureRecognizer]; </code></pre> <p>but oneTap/doubleTap checkDelayTime is feeling a so Long (About 0.5sec?). Generally App Users of the reaction is very fast. Although 0.5 seconds is typically short-time. but In Mobile Device Environment is long-time, because users react is very important.</p> <p>Speaking to the point, YouTubeApp<img src="https://i.stack.imgur.com/DqmW7.jpg" alt="enter image description here"> have a very Perfectly algorithm about filtering at a moment oneTap/doubleTap. oneTap-doubleTap checkDelay is VeryVeryShort Perfectly Optimization.</p> <p>oneTap(show/hidden controlBar)</p> <p>doubleTap(full/default videoScreenSize)</p> <p>How to implement like YoutubeApp? about oneTap-doubleTap filtering Not Using a requireGestureRecognizerToFail Selector. about very short delay oneTap-doubleTap distinguishing.</p> <p>I think YoutubeApp is Not Use a requireGestureRecognizer Selector.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload