Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offsetX and offsetY on Zoom mode #9

Open
ucola opened this issue Aug 7, 2013 · 2 comments
Open

offsetX and offsetY on Zoom mode #9

ucola opened this issue Aug 7, 2013 · 2 comments

Comments

@ucola
Copy link

ucola commented Aug 7, 2013

Hi

I try on zoom mode to create some element on the paper of Raphael. But the problem is, that on zoom mode the offsetX and offsetY coresond not the zoomed offsetX and offsetY.

newSet.click(function(event){

          if(clickZoom == false){
            var panZoom = paper.panzoom({ initialZoom: 5, initialPosition: { x: 50, y: 50} });
            clickZoom = true;

          }else{
            var cX = event.offsetX;
            var cY = event.offsetY;
            console.log(cX+' - '+cY);

            var circle = paper.circle(cX, cY, 10).attr({fill: "yellow"});

          }

        });

are they possible to do on zoom mode? or did you have a solution for this?

thank you for your help

@vipulsaluja
Copy link

I am also facing the same issue. Is there any help?

@deerawan
Copy link

+1 I'm still experimenting with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants