Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11126 closed bug (invalid)

event.pageX returns NaN

Reported by: JBenjaminsson Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

I reported an issue over at jQuery Mobile but the problem seems to come from the removal of some "non-standard features" when jQuery 1.7 was released.

https://github.com/jquery/jquery-mobile/issues/3372

There seems to be a conflict between jQuery 7.x and jQuery mobile 1.0. When i updated from 1.6.4 my mobile site broke. When logging event.pageX i get NaN in desktop browser though it works fine in mobile safari. When using event.originalEvent.pageX instead it works on desktop browsers but not in mobile safari. Test code here:

http://jsfiddle.net/JBenjaminsson/DDuYQ/

Try different versions of jQuery!

I've tested in desktop versions of Chrome, Firefox and Safari with the same results.

Change History (1)

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

This looks like a Mobile bug (3380) that fixed a while back. The test case is using Mobile 1.0 (compressed!) rather than edge.

Note: See TracTickets for help on using tickets.