Uncaught TypeError: Cannot read property 'pageX' of undefined
See original GitHub issueThis error originates from the pointerMove
event listener, initiating a call chain to setEventXY
and getPageXY
, where evidently the pointer
is has been passed in as undefined
.
Seen on Google Chrome and Chrome Mobile, running on WIndows 8.1, Android 4.4, Windows (version undefined) and Linux.
getPageXY
should handle null pointer
exceptions (no pun intended).
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:55 (24 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'pageX' of ...
Your error is that you are invoking both functions mousePos and mouseClicked instead of setting them as values to be passed on events:...
Read more >Uncaught TypeError: Cannot read property 'pageX' of null
Hi @jaimeggb , The pageX key is a property of the event parameter i.e the first parameter of the handleMouseOver function(event, data). Change ......
Read more >MouseEvent pageX Property - W3Schools
The pageX property returns the horizontal coordinate (according to the document) of the mouse pointer when a mouse event was triggered.
Read more >Javascript – Uncaught TypeError: Cannot read property 'pageX' of ...
Javascript – Uncaught TypeError: Cannot read property 'pageX' of undefined. androidcordovajavascriptjquerytouchstart. I am tinkering with touchevents in js.
Read more >Uncaught TypeError: Cannot read property 'pageX' of undefined
Uncaught TypeError: Cannot read property 'pageX' of undefined ... This error originates from the pointerMove event listener, initiating a call ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve pushed a thing to the stable branch to avoid PointerEvents in Chrome. If you’re using
v1.2.*
, updating tov1.2.8
should solve this issue when it’s related to PointerEvents.@taye I haven’t tried the unstable branch, but I can easily reproduce this issue in Chrome 55.0.2883.75 on http://interactjs.io/
Steps to reproduce:
Uncaught TypeError: Cannot read property 'pageX' of undefined
appears in the console.Alternative reproduction: The error appears simply by moving your mouse onto the webpage from the browser chrome area (tabs, address bar, bookmarks, etc).