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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:45:26+00:00 2026-06-18T02:45:26+00:00

I am working on a whiteboard application based on Raphael JS. When the paper

  • 0

I am working on a whiteboard application based on Raphael JS. When the paper size is larger than viewable portion of the web page, it adds right and bottom scrollbar. But due to scroll bar i am not getting the correct mouse coordinates. For example if i draw a line (using Raphael) somewhere at bottom right corner by scrolling down the paper, the object is created only at the viewable portion of paper. Which means the coordinate of the mouse and element drawn are not in same place. How to find the offset of x and y coordinates that can me added or subtracted to mouse coordinates to print the element in right place when scrollbar are moved.

  • 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-18T02:45:27+00:00Added an answer on June 18, 2026 at 2:45 am

    I’ve run into this issue doing drag and drop with Raphael before, and it turns out Raphael’s dragMove wrapper contains an excellent example of how to address this problem. In short, you can get the current scroll offset via the scrollLeft and scrollTop members of the document. Take a look at the dragMove function in the uncompressed source — it’s much more straightforward than it looks.

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

Sidebar

Related Questions

We are working on a restful application that has a 'whiteboard' like feature. I
My online whiteboard application has been working previously, but for whatever reason, it no
Working on some check-in functionality for an application, and trying to figure out the
Working on MVC 3 application with some CRUD operations with jQuery ajax. I post
Working on an app using Struts2, Tomcat 7 and an oracle database. Right now
Working on some small map of Europe with Raphael.js. It works fine in IE7+,
Working on a little Ruby script that goes out to the web and crawls
In the initial 'version' of the application that I'm working on, a design consideration
Working on various GNU Readline-based CLIs and it would dramatically speed me up if
Working on a legacy application at the moment and we are replacing the data

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.