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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:35:56+00:00 2026-06-09T12:35:56+00:00

I load my content per $.get and follow the new appended data per javascript-auto-scrolling.

  • 0

I load my content per $.get and “follow” the new appended data per javascript-auto-scrolling. Now I want to disable autoscrolling if the user “scrolls manually”, but the following scroll-to-bottom function also triggers the Jquery .scroll()-function – so it disables itsef.

if(self.testelem.hasClass("active")){
    $(document).scrollTop($(document).height());
}

How can I receive a mouse-wheel event or prevent scrollTop to trigger the .scroll()-function? I also tried to set a Timeout to block while scrollTop is working, but this isn’t a great solution and has a few drawbacks.

Any suggestions?

EDIT :
My current code:

I use the button #stb (scroll to bottom) and the class .active to to turn it off/on.

$.get("url", function(data){
    //do something          
    if(self.testelem.hasClass("active")){
        $(document).scrollTop($(document).height());
    }
}); 

$(document).scroll(function(){
    jQuery('html,body').queue([]).stop();  //try this
    //$("#stb").parent().removeClass("active");
});

ps: Yes, I know. There are a few quite similar questions. I read them, but they differ in important points.

  • 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-09T12:35:57+00:00Added an answer on June 9, 2026 at 12:35 pm

    To stop a scrollTo event on user-interruption mid-scroll try this:

    $(document).scroll(function(){
        jQuery('html,body').queue([]).stop();  //try this
        //jQuery.scrollTo.window().queue([]).stop(); //failing that try this
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I load content via jQuery load() but for each time I load a given
I load content via Ajax and then I'll have element like $('.my_content_class') and I
Trying to load content into a div, then on click load the previous content
I'd like the load content of my tabs thru AJAX, but only on the
im using .load to load content into a div, i would then like to
I need to load content from a text area into a div via jquery
i use this script to load content of some div, inside another div: $(function()
I use jQuery and AJAX to load content from links and forms into a
I have a segment of my website which needs to dynamically load content when
Possible Duplicate: JQuery ajax cross domain I need to load content from another websites

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.