Bug 146782 - [GTK] 'ontouchstart' in window returns true even if no touchscreens are present
Summary: [GTK] 'ontouchstart' in window returns true even if no touchscreens are present
Status: RESOLVED DUPLICATE of bug 139681
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 05:41 PDT by Emilio Pozuelo Monfort
Modified: 2015-10-02 00:49 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Pozuelo Monfort 2015-07-09 05:41:58 PDT
'ontouchstart' in window return true if TOUCH_EVENTS is enabled, which is the case in the GTK port by default. That should probably return false if no touchscreens or touch devices are present, even if TOUCH_EVENTS support was compiled in.

See https://bugs.webkit.org/show_bug.cgi?id=142888 which fixed this on Mac (not ios) where TOUCH_EVENTS is disabled in OptionsMac.cmake.

This bug causes seemore.playcanvas.com to return touchscreen controls when clicking on the 'gamepad' icon on the top right.
Comment 1 Carlos Garcia Campos 2015-10-02 00:49:30 PDT

*** This bug has been marked as a duplicate of bug 139681 ***