After insalling KB2846071 event.clinetY seems to be negative value

青春壹個敷衍的年華 提交于 2019-12-13 04:30:01

问题


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... 
    }
};

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.

Regards, Nimi


回答1:


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

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



来源:https://stackoverflow.com/questions/17801953/after-insalling-kb2846071-event-clinety-seems-to-be-negative-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!