Bug 248119 - pointerevent movementX and movementY are both undefined only in iOS Safari
Summary: pointerevent movementX and movementY are both undefined only in iOS Safari
Status: RESOLVED DUPLICATE of bug 255207
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-11-18 20:19 PST by Joe Pea
Modified: 2023-08-09 18:26 PDT (History)
11 users (show)

See Also:


Attachments
picture proof of issue (1.04 MB, image/png)
2023-04-19 12:15 PDT, Adam Argyle
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Pea 2022-11-18 20:19:16 PST
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).
Comment 1 Radar WebKit Bug Importer 2022-11-18 22:41:26 PST
<rdar://problem/102541709>
Comment 2 Karl Dubost 2022-11-20 21:34:18 PST
Probably a duplicate of Bug 246067

*** This bug has been marked as a duplicate of bug 246067 ***
Comment 3 Adam Argyle 2023-04-19 12:15:33 PDT
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.
Comment 4 Ryosuke Niwa 2023-04-19 15:07:12 PDT
(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?
Comment 5 Adam Argyle 2023-04-20 08:04:01 PDT
pointermove 👍🏻
Comment 6 Joe Pea 2023-08-08 17:49:47 PDT
This is still happening on my iPhone 13 with iOS 16.6.