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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:39:39+00:00 2026-05-31T15:39:39+00:00

Long question: I have seen on Facebook that a single popup window (like those

  • 0

Long question: I have seen on Facebook that a single popup window (like those when you opens a question from someones feed) can affect the scroll behavior so it don’t scroll the main content but only the content in the popup window according to the height of it, of course. How can I do something like this?

Short question: How can I make the scroll “focus” on the contents height in the welcome DIV?

I’ve made it this far: http://jsfiddle.net/y3qV5/506/. I hope you understand what I mean 🙂

Thanks in advance.

  • 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-31T15:39:41+00:00Added an answer on May 31, 2026 at 3:39 pm

    You can add overflow: hidden to the body.

    http://jsfiddle.net/y3qV5/520/

    body.freeze { overflow: hidden; }
    
    $('#pop').click( function() {
        $('.welcome').fadeIn();
        $('body').addClass('freeze'); 
    });
    
    $('#close').click( function() {
        $('.welcome').fadeOut();
        $('body').removeClass('freeze');
    });
    

    Old answer:
    http://jsfiddle.net/y3qV5/519/

    //bind on show
    $('.welcome').fadeIn().bind('mousewheel DOMMouseScroll', function(e) {
        console.log('scroll');   
        var scrollTo = null;
    
        if (e.type == 'mousewheel') {
            scrollTo = (e.originalEvent.wheelDelta * -1);
        }
        else if (e.type == 'DOMMouseScroll') {
            scrollTo = 40 * e.originalEvent.detail;
        }
    
        if (scrollTo) {
            console.log('prevent');
            e.preventDefault();
            $(this).scrollTop(scrollTo + $(this).scrollTop());
        }
    });   
    
    
    //unbind on close
    $('.welcome').fadeOut().unbind('mousewheel DOMMouseScroll');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please forgive my long question. I have an idea for a design that I
I have this question for quite a long time... I have seen many discussions
Probably a long question for a simple solution, but here goes... I have a
Apologies in advance for the long-winded question. I'm really a database programmer, but have
I have been asking myself this question for a long time now. Thought of
I have a series of 'tasks' that I would like to run in separate
I have seen this question at SO which tends to lead towards Primitives and
I have seen this question asked multiple times and none of the answers seem
I have seen this question so many times and has the answer of USSD
I have seen this question being asked multiple times on the R mailing list,

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.