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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:00:22+00:00 2026-05-23T07:00:22+00:00

Working on a scrub bar for a chromeless player through youtube. I have the

  • 0

Working on a scrub bar for a chromeless player through youtube. I have the functionality working pretty much as Id like BUT when I click to drag the blue “seeker” button and drag it, it jumps back to its original position until I release the mouse click. Once I release, it starts the video at the appropriate position and draws the progress bar at the appropriate position too. code is here: http://jsfiddle.net/VysBU/1/

I also logged the position of the mouse and width of the progress bar (which is the part that jumps around) and the width values move consistently upward or downward on drag which doesn’t make sense because visually, it jumps back and forth. Odd.

Any help is appreciated…if you need me to clarify something, let me know.

NOTE: just remembered…it tends to jump on vertical mouse movements only. ie, if i move the mouse horizontally without changing its vertical position at all, it ‘animates’ fine. if the vertical position does move, the ‘animations’ are erratic.

  • 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-23T07:00:23+00:00Added an answer on May 23, 2026 at 7:00 am

    Check this out http://jsfiddle.net/sz4FF/

    you need to stop the interval of

    setInterval(animateProgress, 100); 
    

    when you begin seeking, and continue it when the seeking stops. The reason why it makes that jump is simply because animateProgress is called and sets the width of the playedBar and seeker.

    I hastily added it to a global function (window.TEST_INTERVAL) just to check if it would work, and it does.

    (how to initialize and clear the interval)

    clearInterval(TEST_INTERVAL);
    TEST_INTERVAL = setInterval(animateProgress, 100); 
    

    within seeking

    function seeking(e){
            clearInterval(TEST_INTERVAL);
    

    within doneSeeking

    function doneSeeking(e){
             TEST_INTERVAL = setInterval(animateBuffer, 250);
    

    UPDATE: IE8 and below problem

        mousePos  = e==undefined ? event.clientX : e.pageX;
        //get the position of the mouse
        //mousePos = e.pageX;
    

    the event returned by onmousemove is “undefined” in ie7 and 8, that way we are checking for window.event.clientX, which shows the mouse position relative to the window. It seems to work fine but I believe that in a normal environment some minor tweaks might be needed

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

Sidebar

Related Questions

My development team is working to the Scrum methodolody, pretty much. We have a
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
So I'm working with authlogic, and I'm trying to duplicate the login functionality to
I have been working as a .net developer following the waterfall model. When working
I'm working on a Java/Groovy program. I have a double variable that holds a
Working in Scala-IDE, I have a Java library, in which one of the methods
I have been working with managing agile teams for quite some time. Now I'm
I am working on writing some code to scrub user input to my ASP.NET
Working on a project with git, I have two feature branches, call them dev-a
Working on a project, I have this issue where my array slicetable returns undefined

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.