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

[BUG] Unable to draw circle shape #1387

Closed
rexy712 opened this issue Feb 4, 2024 · 5 comments
Closed

[BUG] Unable to draw circle shape #1387

rexy712 opened this issue Feb 4, 2024 · 5 comments

Comments

@rexy712
Copy link
Contributor

rexy712 commented Feb 4, 2024

Describe the bug
When trying to draw a circle shape, selecting the draw tool, placing the starting point, all goes as expected. When trying to finish the shape drawing, I am unable to. Unclicking the left mouse button, right clicking, middle clicking, nothing completes the shape and the only way to escape the drawing state is by hitting the escape key, which cancels the shape drawing.

To Reproduce
Steps to reproduce the behavior:

  1. Enter build mode, select draw tool and the circle shape brush.
  2. Begin drawing a circle.
  3. Attempt to complete the circle.

Expected behavior
In the past, I can't recall if it was releasing left click after dragging that completed it or if it was a right click (like the polygon brush). I expect when I finish dragging and then release left click it would complete.

Screenshots

circle-bug.mp4

Desktop:

  • OS: gentoo linux
  • Browser: firefox 122.0, ungoogled-chromium 119.0.6054.199
  • Version: dev branch commit a1517bb
@Kruptein
Copy link
Owner

Kruptein commented Feb 4, 2024

Hm curious I don't have this behaviour on my end on that same commit.

Is there anything appearing in the browser or server console?

@rexy712
Copy link
Contributor Author

rexy712 commented Feb 4, 2024

I checked the server logs and there are no errors on that end.

The browser console shows this error when releasing the left click button on square grid:

vue.esm-browser.prod.js:6 TypeError: Cannot read properties of undefined (reading 'x')
    at Vu (Game-3HCm_-Hf.js:2:7257)
    at Yu (Game-3HCm_-Hf.js:2:6654)
    at Wa.resizeToGrid (Game-3HCm_-Hf.js:4:75526)
    at UM.onUp (Game-3HCm_-Hf.js:5:77016)
    at UM.onMouseUp (Game-3HCm_-Hf.js:5:63064)
    at Proxy.QT (Game-3HCm_-Hf.js:5:137066)
    at C.onMouseup.e.<computed>.e.<computed> (Game-3HCm_-Hf.js:83:230955)
    at on (vue.esm-browser.prod.js:6:17402)
    at rn (vue.esm-browser.prod.js:6:17480)
    at HTMLDivElement.n (vue.esm-browser.prod.js:8:46226)

And this error when releasing left click on either hexagon grid:

vue.esm-browser.prod.js:6 TypeError: Cannot destructure property 'x' of 'r' as it is undefined.
    at Vu (Game-3HCm_-Hf.js:2:7417)
    at Yu (Game-3HCm_-Hf.js:2:6654)
    at Wa.resizeToGrid (Game-3HCm_-Hf.js:4:75526)
    at UM.onUp (Game-3HCm_-Hf.js:5:77016)
    at UM.onMouseUp (Game-3HCm_-Hf.js:5:63064)
    at Proxy.QT (Game-3HCm_-Hf.js:5:137066)
    at C.onMouseup.e.<computed>.e.<computed> (Game-3HCm_-Hf.js:83:230955)
    at on (vue.esm-browser.prod.js:6:17402)
    at rn (vue.esm-browser.prod.js:6:17480)
    at HTMLDivElement.n (vue.esm-browser.prod.js:8:46226)

@rexy712
Copy link
Contributor Author

rexy712 commented Feb 4, 2024

Also of note is that I actually can draw a circle under some circumstances.

If I hold Alt while drawing, it disables grid snapping and the circle brush works fine.

It also works if I don't hold Alt and draw a circle without moving the cursor. It creates a small circle that can then be correctly resized. I believe because it doesn't attempt to do any grid snapping.

@Kruptein
Copy link
Owner

Kruptein commented Feb 4, 2024

Ah that's why I couldnt repro it, I have alt behaviour reversed by default, so yeah it's snapping related, thanks for the info

@Kruptein
Copy link
Owner

Kruptein commented Feb 4, 2024

Closed in #1390

@Kruptein Kruptein closed this as completed Feb 4, 2024
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

2 participants