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

free drawing brush strokes shift up and left #5711

Closed
carterw485 opened this issue May 22, 2019 · 1 comment
Closed

free drawing brush strokes shift up and left #5711

carterw485 opened this issue May 22, 2019 · 1 comment

Comments

@carterw485
Copy link

carterw485 commented May 22, 2019

Version

whichever version the demos use

Test Case

http://fabricjs.com/freedrawing

Information about environment

Which browsers? Chome/Firefox (only 2 I tried)

Steps to reproduce

Draw a brush stroke.

Expected Behavior

Brush stroke stays put after mouse:up

Actual Behavior

Brush stroke shifts up and to the left on mouse:up

Additional Info:

I used to have this code in my app that would move a brush strokes bounding-rect

// Adjust the bounding box around the brush stroke to encapsulate the entire stroke
 target.set({
   top: target.top - (target.height / 2) - (target.strokeWidth / 2),
   left: target.left - (target.width / 2) - (target.strokeWidth / 2),
   originX: 'left',
   originY: 'top',
});

After removing this code, the brush strokes seem to stay put in my app.

@carterw485
Copy link
Author

carterw485 commented May 23, 2019

Clone of #5705

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

1 participant