[Webkit-unassigned] [Bug 100964] [Qt] Make sure that the WebView in flickable mode sends mouse events to the page rather than controlling the viewport with it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 19 04:00:39 PST 2012


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





--- Comment #9 from Andras Becsi <abecsi at webkit.org>  2012-11-19 04:02:35 PST ---
(In reply to comment #6)
> (In reply to comment #5)
> > Hmm taking a look at the code, the flickable private object redirects all mouse events to QtWebPageEventHandler::handleInputEvent. This means that the event will be handled by the gesture recognizers in the UI side and nothing will be send to the WebProcess, or am I wrong? As you said if we remove that handler then all the events will be then sent to the WebProcess directly.
> 
> Yep exactly, that's why selecting text and drag-dropping isn't working. We treat mouse clicks as touch taps if the button was released without moving and send them to the web process.

Incoming mouse event are directly sent through the gesture recognizers.
With this we worked around the issue that on devices that send both touch and mouse events simultaneously we end up selecting text during panning.

> 
> > Ok that looks like a good trade-off. I am not sure that nobody wants to flick using a mouse though. For example I was thinking about interfaces like the Wii, were you have a pointer device that effectively acts as a mouse, but IIRC the Opera browser it has does some kind of panning (flick) instead of scrolling. The hybrid devices mentioned somewhere else could be another example.
> 
> I think that this should then be patched in the distribution or enabled through a platform plugin. In other words, the platform should be dealing with this and not the application code IMO. If platform-specific applications want to enable this, we could expose a setting through a private API.

I also think this is an issue of the driver/ underlying platform, but as far as I know touch pads on Mac OS also send both events.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list