-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 on zoomed in canvas bug #4299
Comments
Your codepen on macos/chrome keep refreshing like crazy. please check it. |
Have no idea what may cause it.. What about fiddle? |
jsfiddle is ok! could you put the buttons in english please? |
They're not important... forgot to remove them. EDIT: Updated. |
I cannot see the bug. Can you give me a clear way to reproduce the bug? |
Just open fiddle, zoom in (scroll up) and left click to draw. Make just one click and you will notice that the center of drawn circle is few pixels away from pointer. |
It happens because the single click create that path that is not centered on the click. If you need to draw just single circles, would be better if you create a specialized brush that draw just a single circle. I do not think i have something to fix here. |
Probably fixing the code and ermoving the Q step, would fix the issue. |
Well it is not just about circles, when you draw a line the center of it is few pixels away. That may be annoying when you need to draw line close to something |
Is not lack of good will. I cannot see this de-centering. Please show me a gif or something where i can see the full process. |
wait i see a high high zoom level there is a displacemente |
Yes, scroll up to maximum zoom and then to even increase the displacement move to the bottom right of canvas (shift + mouse move). |
Probably further away from center the bigger gets displacement. |
i did not notice you are on 1.7.18 This needs custom investigation and fix. 2.0 beta version is ok. |
Getting same result on 2.0. Also when I end drawing a path (mouse up) it is moved few pixels away (even without zooming). That's why I did not use it. |
This is not solved. |
ok is the border. |
Removed borders, outlines and everything and looks like it is smaller displacement now, but still exists :( EDIT2: Okay it was because of resizing canvas to sizes like 200.XX px. Rounded it and it is now okay. |
@bart1337 did you fix the problem? I've been having the same issue, I'm drawing lines ok, but when I do zoom, and then I come back to initial zoom, the problem persists. And I'm not using free drawing. I'm doing this example: |
Issue:
When canvas is zoomed in (zoomToPoint) drawn line or point is moved few pixels away. Tested it on 370x370 image scaled to 336x336 -> when clicked on bottom right corner (370, 370) pointer returns (367,367). Adding code pen for tests. Just zoom in (scroll) and click on canvas. Drawn circle will be few pixels away from pointer.
https://codepen.io/anon/pen/EwYzjp
The text was updated successfully, but these errors were encountered: