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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:15:34+00:00 2026-06-03T09:15:34+00:00

I have a div, with a scroll bar, When it reaches the end, my

  • 0

I have a div, with a scroll bar, When it reaches the end, my page starts scrolling. Is there anyway I can stop this behavior ?

  • 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-03T09:15:36+00:00Added an answer on June 3, 2026 at 9:15 am

    Found the solution.

    http://jsbin.com/itajok

    This is what I needed.

    And this is the code.

    http://jsbin.com/itajok/edit#javascript,html

    Uses a jQuery Plug-in.


    Update due to deprecation notice

    From jquery-mousewheel:

    The old behavior of adding three arguments (delta, deltaX, and deltaY)
    to the event handler is now deprecated and will be removed in later
    releases.

    Then, event.deltaY must now be used:

    var toolbox = $('#toolbox'),
        height = toolbox.height(),
        scrollHeight = toolbox.get(0).scrollHeight;
    
    toolbox.off("mousewheel").on("mousewheel", function (event) {
      var blockScrolling = this.scrollTop === scrollHeight - height && event.deltaY < 0 || this.scrollTop === 0 && event.deltaY > 0;
      return !blockScrolling;
    });
    

    Demo

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

Sidebar

Related Questions

I have a div (sub area of page with scroll bar) that has some
I have div with vertical scroll bar. Div is being updated dynamically via ajax
I have a scrolling div with overflow:auto And I want to scroll it by
I have a div with overflow:auto and a scroll bar, and I'd like to
Hi I have the container div set for displaying horizontal and vertical scroll bar
I have a jQuery draggable container div with a side scroll bar that should
I have a vertically-scrolling div within a page that also scrolls vertically. When the
I have a div with a scroll bar which displays 15 months with 3
I have used the scroll bar which is extracted from this site http://jscrollpane.kelvinluck.com/arrow_hover.html .
I have a div with overflow: auto (a vertical scroll bar appears if the

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.