/    Sign up×
Community /Pin to ProfileBookmark

Combining ‘J’ ‘K’ navigation and infinite scrolling in blogs

Hi,

I’ve found this forum a really useful resource for solving my JS queries I’ve had in the past, but up until now I’ve never needed to post.

Over at my personal tumblog, [URL=”http://andbamnan.tumblr.com”]http://andbamnan.tumblr.com[/URL], I have implemented both ‘J’ ‘K’ key navigation (on Chrome and Safari only) and infinite scrolling. However, I’ve found that the two scripts don’t work so harmoniously together, as the key navigation from post-to-post doesn’t go beyond the first page, instead scrolling up to the first post of the first page. Chrome or Safari users can experience what I’m trying to describe by clicking on the link above and hitting ‘J’ to browse down or ‘K’ to browse up.

I hope there is a solution for this, or if possible, a script out there that CAN conquer both commands.

Thank you

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @andbamnan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...