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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:55:02+00:00 2026-06-06T14:55:02+00:00

After binding the scroll event to an object, how can I get the amount

  • 0

After binding the scroll event to an object, how can I get the amount the user scrolled by?

$(selector).scroll(function(e) {
    // get scroll amount
});

Firefox and Opera have the property detail whereas IE, Safari, and Opera have wheelData. To make matters worse, Firefox and Opera operate on a scale of -3 to 3, and IE and Safari go from -120 to 120.

Is there a single, normalized property that jQuery provides for this?

  • 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-06T14:55:03+00:00Added an answer on June 6, 2026 at 2:55 pm

    Use jQuery .scrollTop() and save the value between scroll events, then get the delta at next scroll event.

    var old_scroll_top = 0;
    
    $(document).scroll(function() {
      var current_scroll_top = $(document).scrollTop();
      var scroll_delta = current_scroll_top - old_scroll_top;
    
      // do something with current_scroll_top and scroll_delta
    
      old_scroll_top = current_scroll_top;
    });
    

    Example:
    jsFiddle

    Update:

    Here is a second Example, which shows how to have a canvas, that updates according to scoll Events.

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

Sidebar

Related Questions

After much research, I have learned that binding the scroll event to the $(window)
What the best way to get custom post-processing after binding to a backing bean,
I have problem with adding image to DGV cell after data binding. this is
I want to get row count of SqlDataSource after binding.
After some struggle with smooks bean binding and CSV mapping, I managed to parse
After the user fills my backing bean with info through the forms, I want
I want to add an item to the combobox after binding it. for example:
I have the following code: initialize: function() { _.bindAll(this); var callBack = function(res) {
Here is my problem. I have a WPF datagrid and I am binding the
I have profiles and studies. One person can finish many studies. The form renders

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.