Issue metadata
Sign in to add a comment
|
webview touch event does not bubbling up to the docuement.
Reported by
smile....@gmail.com,
Jul 26 2016
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Steps to reproduce the problem: using Touch Screen Monitor(LG-23ET63). wrote sample Chrome App for webview testing. ( code here : https://github.com/smilejp/electron-webview-event-test/tree/master/chrome_app_test_based_official_sample) 1. place webview inside document. and add touch event listener at document body and webview page body. 2. touch webview area then receive touchstart/touchend event in webview page. but do not receive document body's event handler. 3. mouse click webview area then can receive mousedown/mouseup event at webview and document body both. What is the expected behavior? What went wrong? webview mouse click event can handle in document body event listener. but, webview touch event can't handle in document body event listener. Did this work before? Yes Chrome 47 Chrome version: 51.0.2704.103 Channel: n/a OS Version: 8 Flash Version: Shockwave Flash 22.0 r0 tested using Electron. before Electron v0.36.12(Chrome 47) - can bubbling webview touch event. after Electron v0.37.0(Chrome 49) - cannot bubbling webview touch event. tested sample chrome app - Chrome/51.0.2704.103 touch event problem same occured.
,
Aug 2 2016
durga.behera@ : thank you for your reply. "Browser Sample" App contained 2 html files. - browser.html - webview1.html i'm using webview tag in browser.html and added touch and mouse event handler browser.html body(browser.js 99~108 lines, https://github.com/smilejp/electron-webview-event-test/blob/master/chrome_app_test_based_official_sample/browser.js#L99) and webview1.html body(webview.js 3~12 lines, https://github.com/smilejp/electron-webview-event-test/blob/master/chrome_app_test_based_official_sample/webview.js#L3) execute "Browser Sample" App, can found white, light green, red area. light green and red area is webview's area. white area is browser.html body area. if you touch red area, handle touch event only webview. if you click red area, handle mouse event both webview and browser's body
,
Aug 8 2016
,
Aug 15 2016
Thank you for providing more feedback. Adding requester "durga.behera@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 19 2016
I have another example of what appears to be a related issue, which is here https://github.com/IamfromSpace/webview-touch-bug In summary, touchstart events from within a webview cause strange behaviors when other webviews or the main window is tapped. More details (also in the example README): In touch emulation mode (in chrome 52 and below, fixed in 55): -no mouse events occur in webviews -With a Planar Touch screen on Windows 7 and Windows 10: mouse events correctly occur in the webview under normal circumstances -If an element is tapped that calls e.preventDefault() on touchstart: --Mouse events will NOT occur on the next click in a different context (webview, or main frame) --These effects "stack." Tapping the element four times will mean that four taps do not fire mouse clicks when switching contexts. As an example: -You must be using Windows (or linux?) with an actual touchscreen--not emulation -Tap back and forth between the main and webview click counters they will increment exactly once for each tap -Tap the Prevent touchstart default: button --it will increment once -Tap the main click counter button twice. --The first touch is ignored, and the second increments the counter --it should increment twice -Tap the webview click counter button twice. --The first touch is ignored, and the second increments the counter --it should increment twice -Tap the Prevent touchstart default: multiple times --it will increment once per tap -Tap the main click counter button one more times than the value shown on the Prevent touchstart default: button --Only the last touch will create a click event and the rest will not --it should increment once per tap
,
Dec 8 2016
We're seeing the same issue reproduced inside the Windows Surface Pro series of devices. Because this is so reproducible, we're also seeing the same behavior with touch events inside the Electron framework (which includes a build of Chromium inside it). Any update on when this will get in the queue would be greatly appreciated.
,
Dec 9 2016
^ Whatever he said.
,
Mar 13 2017
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919
,
Mar 31 2017
Any update on this issue would be gratefully received
,
Apr 5 2017
,
Apr 5 2017
,
May 12 2017
,
Jun 6 2017
I am seeing a similar error in my chrome app on both Chrome OS 58 (Chromebook) and windows. Is there an update on this issue?
,
Jun 25 2017
I have a patch prepared for the issue I reported, however on additional investigation, I'm not convinced that the original issue is the same. As such, I've opened a new issue here: https://bugs.chromium.org/p/chromium/issues/detail?id=736623
,
Jan 10 2018
,
May 30 2018
Is this bug fixed until now? I test in Chrome/61.0.3163.100, but it's still here. Anyone knows? Thanks very much~
,
Jan 11
This issue has an owner, a component and a priority, but is still listed as untriaged or unconfirmed. By definition, this bug is triaged. Changing status to "assigned". Please reach out to me if you disagree with how I've done this. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by durga.behera@chromium.org
, Jul 29 2016Labels: Needs-Feedback