Bug 242189

Summary: Support subpixel precision in pageX, pageY and scrollTop
Product: WebKit Reporter: Oleguer Llopart <oleguer.llopart.mora>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: a_protyasha, dino, graouts, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
URL: https://ollm.dev/pagex/pagex.html
See Also: https://bugs.webkit.org/show_bug.cgi?id=234360
Attachments:
Description Flags
Subpixels in Chrome Android none

Description Oleguer Llopart 2022-06-30 07:12:20 PDT
Created attachment 460580 [details]
Subpixels in Chrome Android

Example URL:
https://ollm.dev/pagex/pagex.html

Safari currently returns integer values in pageX, pageY, scrollTop, clientX, etc in safari for iOS (I haven't tested it in safari for macOS), this causes transitions that depend on these properties to look rough, especially the more DPI the device has. Currently chrome for Android already supports subpixiles for pageX, pageY, scrollTop, etc.

Example video in Safari iOS: https://drive.google.com/file/d/1snoRR0diab9nZ_jU2a6i-bBUcSvMGo-e/view?usp=sharing

Example video in Chrome Android: https://drive.google.com/file/d/1RBj6Ae1A-xNeKwPVQnDZzbcLn3-y2EtQ/view?usp=sharing
Comment 1 Radar WebKit Bug Importer 2022-07-07 07:13:13 PDT
<rdar://problem/96595261>