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

  • Home
  • SEARCH
  • 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 7512583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:54:27+00:00 2026-05-29T23:54:27+00:00

I have an absolute positioned jQuery slider on my page. With it, I want

  • 0

I have an absolute positioned jQuery slider on my page. With it, I want to be able to click and drag to scroll the page.

You can see it right now here:

http://djlol.dk/projects/index2.html (The white one at the bottom)

When you drag the slider at the button, the page jumps strangely. It scrolls, but it’s way too fast.

I’m doing it this way:

$("#slider").slider({
  animate: true,
  change: handleSliderChange,
  slide: handleSliderSlide,
  min: 0,
  max:2900
});

function handleSliderSlide(e, ui)
{
  window.scroll(ui.value, 0);
}
  • 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-29T23:54:28+00:00Added an answer on May 29, 2026 at 11:54 pm

    The problem appears to be tied up in your fixing the position of the slider in the window and the way the slider internally determines how far to move each slider handle.

    The slider plugin calculates the new position of the slide handler from the mouses position change and also the LEFT offset of the element, on each mouse move event. Your slider element uses the css property position:fixed and effectively as the browser window is scrolled, the LEFT offset of the element increases in order to keep it in a fixed position. So not only is the slider value being increased by the mouse change but also by the LEFT offset as you scroll the window. The result is a fast moving slider.

    To fix this, change your slider element position to relative and adjust your top and left offsets. However, this will mean that the left end of the slider will scroll out of view as the window is scrolled, but at least your slider moves at a normal pace.

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

Sidebar

Related Questions

I have three Divs on the page and they are absolute positioned. Lets call
I have an element in a page which is absolute positioned using TOP and
I have a jquery slider on my page which is centered when the page
I have downloaded the jquery scroll script (http://www.position-absolute.com/articles/better-html-anchor-a-jquery-script-to-slide-the-scrollbar/) which will scroll to your anchor
i have a slider that scrolls on drag using the jquery UI however the
i have an absolute positioned img which i make it to appear using jquery
I have a site with absolute positioned elements on it, for example the top
I currently have a label that is absolute positioned within a textarea. I'm trying
I have an image with a play/pause button positioned absolute and centered over top.
I have a page layout involving a lot of position absolute and z-indexing, so

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.