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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:53:36+00:00 2026-05-24T21:53:36+00:00

I know how to implement the drag and drop effect in JavaScript,but I found

  • 0

I know how to implement the drag and drop effect in JavaScript,but I found that in some site,the speed of the drag and drop operation will cause different result.

Take the Google map for example,the map view is draggable ,when you drag the map slowly,the map will move with your mouse ,however if you drag the map very fast and then drop the mouse,the map will keep moving (a limited distance),it seems that it has a buffer distance.

I wonder how to make it?

  • 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-24T21:53:37+00:00Added an answer on May 24, 2026 at 9:53 pm

    There is no vanilla effect for that, unfortunately.

    You will have to count various parameters such as distance, direction and time that it took to complete the drag.

    Then depending on the results you can compute a bezier curve and extend the animation so that it seems seamless and smooth.

    Here’s an example…
    http://jsfiddle.net/an44z/

    It works, if maybe not that well (written hastily for an old project, but it might give you a good idea of what is happening – should be happening).

    EDIT: Alternatively you can study this mooTools example since it is pretty much exactly what you’re after.
    http://mootools.net/demos/?demo=Drag.Scroll

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

Sidebar

Related Questions

I know it's simple to implement, but I want to reuse something that already
Does any know how to implement drag and drop in the silverlight toolkit's treeview?
I'm developing a drag-and-drop plugin for jQuery. It's going well, but I don't know
Does anyone know how to implement the standard bubble message that warns users whenever
I know that classes can implement various special methods, such as __iter__ , __setitem__
I started trying to implement drag-and-drop of virtual files (from a C# 4/WPF app)
Can anyone please suggest how should I implement column drag and drop (with auto
I know how to do drag and drop in C# when it comes to
I'm working on a project that's trying to implement some editing features using a
I'm currently trying to receive key events during a drag and drop, but it

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.