| Summary: | pointerevent movementX and movementY are both undefined only in iOS Safari | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joe Pea <joe> | ||||
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Normal | CC: | ahmad.saleem792, akeerthi, a_protyasha, argyle, joe, karlcow, richard_robinson2, rniwa, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | Safari 16 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 16 | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=258780 | ||||||
| Attachments: |
|
||||||
Probably a duplicate of Bug 246067 *** This bug has been marked as a duplicate of bug 246067 *** Created attachment 465985 [details]
picture proof of issue
Tested on iOS 16 and iOS 16.4 Safari and this bug still exists and should not be marked fixed. Screenshot shows iOS 16.4 inspected by Safari and the value for e.movementX is undefined.
(In reply to Adam Argyle from comment #3) > Created attachment 465985 [details] > picture proof of issue > > Tested on iOS 16 and iOS 16.4 Safari and this bug still exists and should > not be marked fixed. Screenshot shows iOS 16.4 inspected by Safari and the > value for e.movementX is undefined. On which event are you seeing this? pointermove 👍🏻 This is still happening on my iPhone 13 with iOS 16.6. This was fixed in https://bugs.webkit.org/show_bug.cgi?id=255207 and is shipping in the Safari 17 beta. https://developer.apple.com/documentation/safari-release-notes/safari-17-release-notes#:~:text=Fixed%20missing%20movementX%20and%20movementY%20in%20pointermove%20events.%20(108112600) *** This bug has been marked as a duplicate of bug 255207 *** |
This code logs undefined only in iOS Safari (iPhone/iPad): document.documentElement.addEventListener( 'pointermove', e => console.log( 'movement', e.movementX, e.movementY ) ) It works fine in every other browser, even in macOS desktop Safari, and Chrome, Firefox, Edge in all OSes (except in iOS because they use WebKit there).