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

Page visibility API #2

Closed
rauchg opened this issue Mar 5, 2012 · 5 comments
Closed

Page visibility API #2

rauchg opened this issue Mar 5, 2012 · 5 comments

Comments

@rauchg
Copy link

rauchg commented Mar 5, 2012

I was curious what your thoughts are on triggering away events based on page visibility [1]

[1] http://www.nczonline.net/blog/2011/08/09/introduction-to-the-page-visibility-api/

@shawnmclean
Copy link
Owner

Hi, I was looking into this, I'm going to integrate it soon along with window.focus and window.blur for unsupported browsers. What I have now caters to older browsers.

Thank you for the suggestion.

@rauchg
Copy link
Author

rauchg commented Mar 5, 2012

Excellent. Let me also suggest a boolean option triggerAwayOnBlur (or similar name) to activate/deactivate that functionality.

@shawnmclean
Copy link
Owner

thanks, I will.

@shawnmclean
Copy link
Owner

I made 2 new events to distinguish away and looking at page because you may be looking at the page and away.

@rauchg
Copy link
Author

rauchg commented Mar 7, 2012

Sweet!

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

2 participants