Skip to main content

Bug Tracker

Side navigation

#12343 closed bug (cantfix)

Opened August 18, 2012 02:42PM UTC

Closed September 07, 2012 05:07PM UTC

Last modified May 22, 2013 03:34PM UTC

event.pageX and pageY have incorrect values in IE10 on Windows 8 RTM

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: event Version: 1.8.0
Keywords: Cc: dmethvin
Blocked by: Blocking:
Description

NOTE: tested using jQuery 1.7.2 and 1.8.0, both have this problem. Test was done using a HTML5 doctype, didn't test older doctypes.

In Internet Explorer 10 that came with Windows 8 RTM, event.pageX and event.pageY both have incorrect values:

Instead of returning the mouse position relative to the document's Left/Top, the values returned are relative to the IE10 viewport's Left/Top.

To reproduce this problem, simply scroll a page half way to the right and half way down, move mouse around and you can see the incorrect values returned.

Attachments (0)
Change History (22)

Changed August 18, 2012 11:17PM UTC by timmywil comment:1

owner: → anonymous
status: newpending

Thanks for taking time to contribute to the jquery project! Please help us assess your ticket by providing a test case from  http://jsfiddle.net or  http://jsbin.com using the git version of jQuery.

Changed September 02, 2012 08:40AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed September 05, 2012 04:28AM UTC by anonymous comment:3

Changed September 05, 2012 12:49PM UTC by mikesherov comment:4

component: unfiledevent
resolution: invalid
status: closedreopened

Changed September 05, 2012 12:58PM UTC by mikesherov comment:5

cc: → dmethvin

I'm unable to reproduce this issue on IE10 on browserstack. dmethvin, any luck?

Changed September 05, 2012 01:58PM UTC by dmethvin comment:6

status: reopenedpending

I cannot reproduce this either. If I move the x/y scroll bars to the center of their range and click in the top left of the visible blue area, I get a suitably large x/y value as I would expect. On my Samsung tablet, it works in desktop IE10 with both a real mouse and with the simulated mouse events generated by a touch event. In the Metroish IE10, it works properly with touch events as well, although scrolling is a bit tricky.

Is it possible that some browser plugin is interfering? What's different about your setup?

Changed September 05, 2012 02:27PM UTC by mplank@outlook.com comment:7

http://simonsarris.com/blog/510-making-html5-canvas-useful first not scroll and drag, then scroll and drag <- not work / Test IE10 an Windows 8 RTM

Changed September 05, 2012 10:14PM UTC by dmethvin comment:8

Please reduce this to a simpler test case. There's a lot of stuff on that page.

Changed September 06, 2012 04:14AM UTC by anonymous comment:9

status: pendingnew

This bug was discovered using Windows 8 Ultimate RTM (from MSDN) installed in Oracle VirtualBox. It can be reproduced in both the Metro IE10 and the ordinary IE10.

Changed September 06, 2012 04:18AM UTC by anonymous comment:10

Typo above: it's Windows 8 Enterprise RTM (from MSDN) in Oracle VirtualBox, there's no Ultimate edition of Windows 8.

Changed September 06, 2012 04:34AM UTC by anonymous comment:11

The setup above (Win8 Enterprise RTM on Oracle VirtualBox) was completely clean, clean windows install and nothing else, didn't even change any IE settings from default.

Just tested using Windows 8 RC but it doesn't have this problem, so I guess only the RTM.

Changed September 06, 2012 01:12PM UTC by dmethvin comment:12

status: newopen

Okay, I finally did get this to repro. I had tried it on my Lenovo notebook before and it didn't seem to occur, but this time it did. Here is a screen shot of the problem clipped from the jsFiddle case. I set the scroll bars to the center and clicked on the upper left hand corner of the window (the blue area). It should have returned document-relative coordinates but instead it returned window-relative coordinates: http://i.imgur.com/Ct6W8.png

Browserstack and my Samsung tablet are still on the older pre-release version; neither have the issue:

http://i.imgur.com/AOrG2.png

As for a solution, I am not sure one is possible at the jQuery level without browser sniffing. I'll contact Microsoft and see if they can give us some more info. Leaving open for now.

Changed September 06, 2012 01:35PM UTC by dmethvin comment:13

Corrected fiddle, still showing error (the other one had bad markup but it didn't affect the problem): http://jsfiddle.net/LbKfR/3/show

Changed September 07, 2012 05:07PM UTC by dmethvin comment:14

resolution: → cantfix
status: openclosed

I heard back from Microsoft, they have a patch that will go out a few days after the official public release that will fix this issue. There's no reliable marker that jQuery can use to tell fixed vs unfixed implementations, so your best bet is to tough it out until then.

Changed September 24, 2012 02:03PM UTC by dmethvin comment:15

#12598 is a duplicate of this ticket.

Changed October 25, 2012 09:09PM UTC by stephen comment:16

This seems to have been fixed by a recent update of IE10.

Changed November 27, 2012 07:01PM UTC by anonymous comment:17

Replying to [comment:16 stephen]:

This seems to have been fixed by a recent update of IE10.

Could you provide fix version number of IE10. I can't find anything from MSDN.

Changed February 28, 2013 12:07PM UTC by anonymous comment:18

For clarity this issue is now fixed in IE build 10.0.9200.16484

The IE10 Win8 RTM was 10.0.9200.16384

IE updates were KB2792100 & KB2797052, I am not shore which one fixed it.

Changed March 19, 2013 04:52PM UTC by anonymous comment:19

It's still present in the current IE10 version when first installed... Any ideas...?

Changed March 19, 2013 04:56PM UTC by dmethvin comment:20

Run Windows Update? In any case Microsoft does have a fix and we can't apply one anyway. If you can't solve the problem please ask for help on a forum.

Changed May 19, 2013 08:14AM UTC by peter.mescalchin@gmail.com comment:21

Would just like to add for the record, I was able to reproduce and confirm this behaviour with my own JavaScript library/code. Ended up here on a Google search - thought I would add my notes.

With IE10 10.0.9200.16384 (bundled with the Win8/IE10 VM images at http://modern.ie/ as of March 2013 - may now be updated) e.pageX/e.pageY is mis-reported, behaving like e.clientX/e.clientY of classic IE version 6/7/8.

Performing a Windows update to now 10.0.9200.16580 the behaviour has now corrected itself, e.pageX/e.pageY now report as expected.

Changed May 22, 2013 03:34PM UTC by rwwl comment:22

Weird, I updated to 10.0.9200.16580 on my IE10 Windows 8 VM (the one supplied at modern.ie) and I still see this issue.