Bug 134612 - Add link long-press gesture event handling
Summary: Add link long-press gesture event handling
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 134262
  Show dependency treegraph
 
Reported: 2014-07-03 15:10 PDT by Peyton Randolph
Modified: 2014-07-24 14:34 PDT (History)
7 users (show)

See Also:


Attachments
Event handling (14.03 KB, patch)
2014-07-03 15:11 PDT, Peyton Randolph
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peyton Randolph 2014-07-03 15:10:30 PDT
Subtask of Add long-press links gesture to Mac
https://bugs.webkit.org/show_bug.cgi?id=134262

Within the link long-press, there are three events we care about: starting the long-press [start], triggering the long-press [trigger], 
and cancelling the long-press before or after triggering [cancel].

The general flow of the event is as follows (the event triggered at a step is placed in square brackets):

- [start] The user mouses down over a link.
  - [trigger] The user keeps the mouse pressed on that link without moving their mouse too much for longer than
              the specified long-press duration.
    - The user releases their mouse press.
    - [cancel] Without releasing their mouse press, the user moves their mouse outside the bounds of the link.
               Doing so cancels the long press, much like pressing a button on OS X and then moving outside 
               that button's bounds cancels the button press.
      - The user releases their mouse press.
      - [trigger] Without releasing their mouse press, the user hovers over the original link again. Loop back
                  to the grandparent's trigger event.
  - [cancel] The user releases their mouse press before triggering the long-press, triggering a normal mouse up.
  - [cancel] The user moves their mouse outside a small region around the original mouse press before triggering
             the long-press.
Comment 1 Peyton Randolph 2014-07-03 15:11:39 PDT
Created attachment 234372 [details]
Event handling
Comment 2 Peyton Randolph 2014-07-24 14:34:34 PDT
Superseded by https://bugs.webkit.org/show_bug.cgi?id=135257