Differences between Utilities & Window Controls #2139
Closed
snowboyz0825
started this conversation in
General
Replies: 1 comment 1 reply
-
Important to note that these are only in an old version of the utilities extension. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are a lot of differences between the window blocks in the Utilities extension by sheep_maker and the official Window Controls extension that I feel people should know about.


The first (and a major one) is that the utilities extension factors in how zoomed in the browser is (on chrome at least)
(Anything with a U is from the utilities extension, anything without is from the window controls extension)
Both window variables become 10 percent bigger when zooming out. This is helpful for a variety of reasons.
For example, (as far as I know) there is no official way to get the zoom a user is using on a website. With this we can detect it, as Windows Controls' blocks don't actually factor in zoom.

(I typically use turbowarp on 90% zoom, I usually make my projects attempt fullscreen so the stage width takes up a sizable portion of the code area.)
Another important difference is that Utilities factors in the top part of a browser tab. (Kind of)


Taking a look at screenHeight and sceenHeightU, the difference is 39 pixels. Taking a screenshot 39 pixels from the top looks like this,
so it's likely factoring in the list of tabs but not much else. Another important thing about this screenshot - this is taken at 90% zoom, whoever it reports the width as being the same. I'm not too sure why this happens or what it could break. I believe when packaged it works properly, but I'm not entirely sure.
This allows for more accurate fullscreen - it's not perfect, but it will allow you to better ratio the width to height of what's ACTUALLY being displayed. In MY experience, Window Controls has fallen short in the past, as it only works well when in fullscreen. However, although I haven't personally experienced them, I can imagine that using Utilities' window blocks could cause issues if the user zooms, although possibly remedied. I feel as though all this functionality could be added to a few other extension. For example, zoom could be added to the Navigator extension. Possibly we could add some sort of "Displayed Width" and "Displayed Height" to the (admittedly bloated) Window Controls extension.
Beta Was this translation helpful? Give feedback.
All reactions