jquery.idle icon indicating copy to clipboard operation
jquery.idle copied to clipboard

Idle timeout not working in IE11

Open tavishiChat opened this issue 7 years ago • 3 comments

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.

tavishiChat avatar Oct 27 '17 08:10 tavishiChat

Hey there, could you please share a jsbin/jsfiddle/codepen example so I can test this issue?

henriqueboaventura avatar Oct 27 '17 11:10 henriqueboaventura

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 avatar May 08 '18 09:05 jiechan

@jiechan could you please generate a PR with the solution ?

henriqueboaventura avatar Aug 23 '18 14:08 henriqueboaventura