jquery.idle
jquery.idle copied to clipboard
Idle timeout not working in IE11
I have used this plugin : $(document).idle({ onIdle: function(){ closeSessions(); $(location).attr('href', "logout.jsp" ); }, events: 'mousemove keydown mousedown touchstart click', idle: timeout }); Now in chrome if I login to my application and mouse remains idle on that screen only, it gets log out after the given timeout. This is expected. But in IE if I login and mouse is Idle on the same screen the timeout doesnot work, it doesnot gets logout.
Hey there, could you please share a jsbin/jsfiddle/codepen example so I can test this issue?
I used your jquery idle in IE11 too, and I have the same issue: sometimes idle not works, it will never be idle. But in Chrome, idle works well. After inverstigation, I found IE11 will generate mousemove event automatically. After mousemove is triggerd, the timer will be reset. I don‘t know if it is an IE issue. And I tried to fix it, the solution is, when I found mousemove event, I will check the distance of mousemove. @kidh0
@jiechan could you please generate a PR with the solution ?