在insalling KB2846071之后,event.clinetY似乎是负值 [英] After insalling KB2846071 event.clinetY seems to be negative value

查看:200
本文介绍了在insalling KB2846071之后,event.clinetY似乎是负值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在onbeforeunload事件处理程序中时,安装KB2846071会破坏event.clientX和event.clientY属性。

Installation of KB2846071 breaks the event.clientX and event.clientY properties when we are in an onbeforeunload event handler.

window.onbeforeunload = function(e) {
    if (event.clientY < 0 ) {
        // close the session
        // warn the user... 
    }
};

每当用户点击页面上的链接时,每次都会触发,因为event.clientY始终为负数。这意味着我们的用户通过点击应用中的链接或链接按钮来丢失会话!

This fires now everytime when a user clicks a link on the page because event.clientY is always negative. That means our users are losing their sessions by clicking on links or link buttons within the app!

任何解决此问题的方案都会受到赞赏。

any solution for this is appreciated.

问候,
Nimi

Regards, Nimi

推荐答案

这个问题对我们也有影响。到目前为止它似乎影响IE9和IE10,但不影响IE8。

This issue affects us as well. So far it seems to affect IE9 and IE10, but not IE8.

Microsoft Connect上有一个关于此错误的条目,微软表示他们正在调查此问题。如果有更新,它将在那里发布。我还建议在这个问题上投票。

There is an entry on this bug on Microsoft Connect and Microsoft are stating that they are investigating the issue. If there is going to be an update, it will be published there. I also recommend to "vote" on that issue.

http://connect.microsoft.com/IE/feedback / details / 794228 / kb2846071-breaks-event-clientx-and-event-clienty-properties-in-onbeforeunload-event-handlers-in-ie9-and-10

这篇关于在insalling KB2846071之后,event.clinetY似乎是负值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆