GNOME Bugzilla – Bug 784547
Cannot open url's using touchscreen
Last modified: 2017-11-17 00:37:36 UTC
Using a touchscreen, I cannot open url's from the chat by clicking onto them. Using the mouse work's as expected.
I'm attending a hackfest where I finally got a chance to get my hands (read: fingers) on a touchscreen to look into this. Patches coming ...
Created attachment 363870 [details] [review] chatView: Simplify context menu handling GTK+ added dedicated API for popping up a menu at the pointer location a while ago, use that to bring up the context menu instead of the now deprecated generic function.
Created attachment 363871 [details] [review] buttonTag: Add ::popup-menu signal Button tags are currently broken on touch devices, as we rely on button press and release events. In order to fix that, it makes sense to stop exposing the events directly, and instead add an API that hides the event nitty-gritty.
Created attachment 363872 [details] [review] buttonTag: Remove event signals Those are now unused, and will get in the way when fixing touch support.
Created attachment 363873 [details] [review] buttonTag: Use event controller Touch devices don't generate 'regular' press and release events, so button tags are currently limited to pointer devices. Address this by using a GtkEventController internally, to get a reasonable level of pointer emulation.
Attachment 363870 [details] pushed as 5b97dcf - chatView: Simplify context menu handling Attachment 363871 [details] pushed as 83b5671 - buttonTag: Add ::popup-menu signal Attachment 363872 [details] pushed as 0660ac7 - buttonTag: Remove event signals Attachment 363873 [details] pushed as 1ed652a - buttonTag: Use event controller