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 8597459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:55:06+00:00 2026-06-12T00:55:06+00:00

I have implemented a custom scroller, as you can see here . For my

  • 0

I have implemented a custom scroller, as you can see here. For my scroller I have used ScrollTo. The problem is that I need to understand when the user is using my custom scroller and when it is using mouse or other ways for scrolling, such as keyboard. I tried this:

$(window).scroll(function(){

});

but also my custom scroller triggers this. Here is the structure of my page:

<div class="page">

   <div id="scroller" class="news-scroller">
     <div ><span id="up"></span></div>
     <div ><span id="down"></span></div>
   </div>

   <div class="news">
   </div>
   <div class="news">
   </div>
   ....

and here is the code for my custom scroller:

var current = $(".news").eq(0);

$("#down").click(function(){
   if(current.next().size() > 0)
   {
      current = current.next();
      $.scrollTo("#"+current.attr("id"), 800);     

   }
   else  if(current.next().size() <= 0)
   {
    return
   }
});

$("#up").click(function(){
   if(current.prev().size() > 0)
   {
      current=current.prev();
      $.scrollTo("#"+current.attr("id"), 800);
   }
   else  if(current.prev().size() <= 0)
   {
      return;
   }
});
  • 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-06-12T00:55:08+00:00Added an answer on June 12, 2026 at 12:55 am

    Since there might be other people looking for this, here is the conclusion: $(window).scroll() happens with any scrolling event that happens no matter if it is with mouse or keyboard or any kind of scrolling. The only way to somehow diffrenciate them from eachother is to find a pattern in the custom scroller (for example my scroller was scrolling a specific distance in a specific amount of time), which wouldn’t be a very accurate solution.

    The solution I tried was to trigger a custom event in my custom scroller, in this way I could understand when user is using my custom scroller and when not.

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

Sidebar

Related Questions

I have implemented a custom CellRenderer in PyGTK that can take longer to render
My problem is that I have implemented a custom arrayadapter, that fetches images from
I'm using OSMdroid to implement a mapping application. I have implemented a custom MapTileProvider
I have implemented my custom button inheriting from CButton and drawing it by using
I have implemented a custom membership provider using LINQ to SQL. When I added
I have implemented a custom UrlAuthorization module as shown here The code is as
I have implemented custom NSCache to store the remotely downloaded images that are displayed
I have implemented a custom allocator (to be used by STL containers within my
I have implemented a custom IPrincipal that I set in protected void Application_PostAuthenticateRequest(Object sender,
I have implemented an app that is basically a custom app store for updating

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.