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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:55:18+00:00 2026-06-08T08:55:18+00:00

view-source:http://raphaeljs.com/touches.html http://raphaeljs.com/touches.html I’d love it if somebody explained why this drag ‘n’ drop example

  • 0

view-source:http://raphaeljs.com/touches.html

http://raphaeljs.com/touches.html

I’d love it if somebody explained why this drag ‘n’ drop example works. I can gather roughly what each function is doing but I can’t piece together why this moves when there’s nothing telling it to move.

  • 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-08T08:55:20+00:00Added an answer on June 8, 2026 at 8:55 am

    The move function behaves as a callback, and it takes 2 arguments, dx, dy. They stand for delta-X and delta-Y respectively.

    If you see this line:

    this.attr({cx: this.ox + dx, cy: this.oy + dy});
    

    Then you will notice that ox and oy stand for original-X and original-Y respectively.

    Thus you can deduct that the attr function is being called with arguments that specify original X + delta X and original Y + delta Y.

    Make sense?

    Do not get confused with the animate calls – they are for expanding/contracting the shape on start/stop. Every time you move the mouse, the move function is called, and the attr is updated.

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

Sidebar

Related Questions

I am creating a dialog like in this page: http://jqueryui.com/demos/dialog/#modal-confirmation (click view source) on
Webpage is - http://schnell.dreamhosters.com/spriteanimate.html Just go to the page and 'View Source' and you'll
at this link: http://jqueryui.com/demos/tabs/ when we look view source, we have: <div id=tabs> <ul>
At the moment I'm using DatePicker (view-source:http://jqueryui.com/demos/datepicker/default.html) but I'm having difficulties adding Timepicker addon
If you view source on http://seeitornot.co/prometheus/771228969 , you'll see html in the including the
I was checking the view source of the site http://mothereffinghsl.com/ . It was coded
if you go here: http://whois.domaintools.com/iconplc.com and view the source why can't you see the
Example: http://jqueryui.com/demos/dialog/#modal-confirmation The example shown allows you to view the source and even has
https://search.twitter.com/search.json?q=doug How do I read this like VIEW SOURCE, so that I know what
Im browsing the flot examples here http://people.iola.dk/olau/flot/examples/turning-series.html (view source once there) I came across

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.