[Webkit-unassigned] [Bug 226848] New: Touch events lost when a PWA goes into the background
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 9 13:41:41 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226848
Bug ID: 226848
Summary: Touch events lost when a PWA goes into the background
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: UI Events
Assignee: webkit-unassigned at lists.webkit.org
Reporter: joshua.grass at gmail.com
Progressive web apps that use:
document.addEventListener('touchstart', mantaTouchStart, false);
and other touch events lose the event listener when the application is put in the background and brought back to the foreground.
To reproduce:
1) Open a web page that uses a touch event (touchStart, touchEnd, touchMove...)
2) Touch events work fine
3) Go to the home screen - placing Safari in the background
4) go back to safari
5) touch events continue to work
6) Add the website to the homescreen
7) Open the PWA
8) Touch events work fine
9) Go the the home screen - placing the PWA in the background
10) Go back to the PWA
11) touch events no longer respond
Update still happens, so I've even tried adding code to re-add the touch listeners as part of the update. That does not work either. So I think, it is beyond just losing the touch event listener. I think something has broken them when you switch to another app and back.
Touch events work fine in safari and work fine on android when a chrome web page is saved as a PWA, so I do not think it is developer error.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210609/37fe46f3/attachment-0001.htm>
More information about the webkit-unassigned
mailing list