Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 982981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:47:01+00:00 2026-05-16T04:47:01+00:00

I am trying to detect when a user has finished scrolling a web page

  • 0

I am trying to detect when a user has finished scrolling a web page using Javascript on Android. The script I have is working on iPhone and seems correct to me that it should work on Android. Anyway, a snippet:

previous = pageYOffset;
interval = setInterval(function() {
    //Has scrolling stopped?
    if(previous == pageYOffset) {
        clearInterval(interval);
        //DO SOMETHING AFTER SCROLL COMPLETE
    } else {
        previous = pageYOffset;
    }
}, 200);

The basic idea, poll the pageYOffset every 200ms, if there had been no change then there is no scrolling happening. Otherwise, keep looking.

As I said, this works on iPhone, so I am assuming it is something to do with Android possibly not updating pageYOffset during a scroll?

Any help is greatly appreciated!

Note: I went for this route as I could not find a isScrolling property or scrollStop type event. If I have overlooked one, please do tell me 🙂


Update: Just tried to use the ‘scroll’
event to detect this. Mixed results
here. On the Android emulator it was
working almost correctly, but was very
intermittent on an actual phone (2.1
Sense Hero GSM), i.e. only 1 in 10
scrolls were detected.

Even when it was ‘working’ on the
emulator it was not firing the scroll
event when you scroll ‘up’ when you
are at the top of the page (i.e. to
push up to see the address bar). This
is a problem as the page has actually
been scrolled (changed position) but I
am not recieving the event.

Note, the iPhone does seem to fire and
detect the event correctly (at least
in the emulator, no access to device
at the moment).

Any ideas?


Update 2: The new ‘scroll’ event seems
to work (to the same extent as the
emulator (1.6 and 2.1)) on SOME
Android devices. Will continue to
investigate to try to narrow this
down.

Still the issue of ‘scroll’ not being
fired when you scroll up to the
address bar. Might have to have some
kind of hybrid solution of ‘scroll’
event detection and movement polling
after a touch.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:47:01+00:00Added an answer on May 16, 2026 at 4:47 am

    The Hero helpfully interposes itself on occasional events and doesn’t report them correctly to javascript. We discovered a number of these in our Android development. Sometimes it seems to matter which way you are holding the phone (not kidding!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.