[Webkit-unassigned] [Bug 144663] New force-related DOM events should fire in WK1 views

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 6 16:03:46 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144663

--- Comment #9 from Beth Dakin <bdakin at apple.com> ---
(In reply to comment #8)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > > Source/WebKit/mac/WebView/WebHTMLView.mm:-3844
> > > > -    [[[self _webView] _immediateActionController] webView:[self _webView] willHandleMouseDown:event];
> > > 
> > > Whaaaaaa?
> > > 
> > 
> > This is because mouseDown used to come after the immediate action! Remember?
> > We used to have shenanigans like this in WK2 as well, and we were able to
> > remove them when we switched to delaysPrimaryMouseEvents:NO. This code was
> > there purely because we were getting mouse down at a weird time.
> 
> Righto.
> 
> > > Could you not keep this in EventHandler instead and avoid keeping it here?
> > 
> > Hmmmmmmm. I'll have to think this over. This is a closer mirror to what we
> > do in WK2. If we moved it to EventHandler, we would have WK1 only member
> > variables there, which we actually manage to avoid at this point.
> 
> Could you not then perhaps use them for WK2 as well, and share some code
> that you currently have duplicated between WebView and WKView?

Ugh, maybe some day? But I  find the idea of that exhausting because I had originally implemented a version of the WK2 code that was more like this, but Simon and Sam very much wanted every layer of the WebKit events to have force in them, and to squish the square peg (pressure events in AppKit are not mouse events) into the round hole (we want pressure events to be mouse events) at the moment NSEvents are converted to anything else in WK2. That is done in the UIProcess, way far away from EventHandler. In WK1, that conversion happens at a surprisingly low level, hence all of these new parameters.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150506/0b0b401e/attachment.html>


More information about the webkit-unassigned mailing list