electron: The problem regarding two tap on webview

  • Electron version: 1.0.2
  • Operating system: Linux 4.4.3, Window8

I am developing webapps on touch based device using electron. As I use, electron is very cool solution for desktop app. Thanks for all developers of electron.

Now I have faced the problem regarding use of webview. When I do two taps on anchor tag in a webview, new page is loaded on the webview normally. But any touch events on newly loaded page don’t occur by single finger, so that I can’t interact the page. By the way, two more fingers occurs touch events. And mouse events occur and are handled normally.

I simply loaded the following local file using electron. For options of BrowserWindow, I use one defined as default. You can also reproduce my problem by doing two taps on touch monitor.

<html>
   <body>  
     <webview src="http://electron.atom.io" style="width:100%;height:100%;"></webview>  
  </body>  
</html>

May I define something to avoid this problem? Otherwise, Is this a bug of webview?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (7 by maintainers)

Most upvoted comments

As I tried in electron v.1.2.3, this problem still occurs. Only occurrence frequency become less. However, when I touch anchor tag more 3 times quickly on any website, this problem occurs almost always.

@zcbenz thanks for the quick response. Just upgraded the app to v1.3.x and it still happens.

I’m able to reproduce this consistently.

Add an webview and then tap on an anchor a lot.