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

At a very specific browser dimensions, words are improperly sized #189

Open
themichaelyang opened this issue Feb 16, 2018 · 3 comments
Open

Comments

@themichaelyang
Copy link
Member

screen shot 2018-02-15 at 11 30 50 pm

@cibersheep
Copy link

cibersheep commented Feb 16, 2018

I confirmed this.
Experienced in oxide (fork of chromium) and firefox on Ubuntu. If you zoom in, there's a percentage where text gets on game

@cibersheep
Copy link

cibersheep commented Feb 16, 2018

The text in the centre of the hexagon (current score and «flying» bonus) gets a wrong size on certain zoom.
On Firefox 58 I have to zoom at 210% (browser at full screen) ot 67% (browser at half of the screen) to get this result
imatge

@Rb64
Copy link
Contributor

Rb64 commented Jan 15, 2022

It seems like a few Issues (#182 #162 #189) in this project have the same origin. I have successfully managed to replicate this bug on chrome and Firefox. To do so make the scaling as small as possible by hitting ctrl & - . Then slowly resize the window by pulling its edges util you see it flash. Try resizing again and again to get to precisely that height and width setting that a white disturbance appears. You will also notice that the score in the middle of the screen has now vanished. It is important to note that I have only been able to replicate this after increasing the score after combining a few blocks. I believe the bug has to do with the scoreSize variable that is used for example in line 52 of view.js: renderText(trueCanvas.width / 2 + gdx, trueCanvas.height / 2 + gdy, scoreSize, color, score);. I came to this conclusion after seeing that the disturbing object changes after the score changes which most likely means that the white object that appears is in fact the score, but with a much larger than necessary font size.

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