Bug 195801 - (iOS 12.2) Removing and re-adding pointer-events does not allow element to receive events again
Summary: (iOS 12.2) Removing and re-adding pointer-events does not allow element to re...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 12
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-15 06:48 PDT by Liam DeBeasi
Modified: 2019-05-21 10:52 PDT (History)
6 users (show)

See Also:


Attachments
Scrolling bug xcode project reproduction (5.19 MB, application/zip)
2019-03-15 06:48 PDT, Liam DeBeasi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liam DeBeasi 2019-03-15 06:48:36 PDT
Created attachment 364792 [details]
Scrolling bug xcode project reproduction

Current Behavior:
When removing and then re-adding pointer events via CSS, the element does not receive events (such as a scroll event) unless there is some other CSS change that causes style recalculations (such as background-color, z-index, etc).

Expected Behavior:
The element should receive events after having pointer-events re-added.

Example:
See attached .zip for Xcode project.

Steps to reproduce: 
1. Run app on any iOS device running the iOS 12.2 beta.
2. Tap "Tap This Button".
3. The app should transition to a new page, a loader should appear, and then a list of names will be rendered. 
4. Attempt to scroll the new list (you should not be able to)
5. Tap the "fix scrolling" button. At this point, a CSS recalculation will occur and you will be able to scroll again.

Additional Info:
This has been tested on iOS 12.2 betas 3-5. Additionally, this issue does not exist on versions of iOS prior to the 12.2 Beta.

This issue does not occur in Safari, only in WKWebView. This issue does not occur without "-webkit-overflow-scrolling: touch;" set on the scrollable element.
Comment 1 Radar WebKit Bug Importer 2019-03-16 12:07:56 PDT
<rdar://problem/48955178>
Comment 2 Antti Koivisto 2019-05-21 10:52:46 PDT
Seems to work fine with trunk.