Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle timeout not working in IE11 #27

Open
tavishiChat opened this issue Oct 27, 2017 · 3 comments
Open

Idle timeout not working in IE11 #27

tavishiChat opened this issue Oct 27, 2017 · 3 comments

Comments

@tavishiChat
Copy link

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.

@henriqueboaventura
Copy link
Owner

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

@jiechan
Copy link

jiechan commented May 8, 2018

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

@henriqueboaventura
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants