itchio / itch.io

:bug: Public itch.io issues tracker and documentation - use support instead for private information!
https://itch.io/support
240 stars 25 forks source link

Top right buttons can block mouse input in web games #1536

Open popcar2 opened 7 months ago

popcar2 commented 7 months ago

Describe the bug ​This is kind of a niche issue but I wanted to report it anyways. The panel showing "view all/ add to collection/ gamejam entry" can in some cases be large enough that it blocks my mouse from hitting the top right part of my web game. I have my browser defaulting on 120% zoom since I'm on a laptop, which causes this panel to overlap with the game.

Pictured: Unable to click the top right portion of the screen to close/unmaximize the window in-game.

image

Here's another picture showing the hitbox of this panel:

image

It seems like a combination of having the page slightly zoomed in and a really long game-jam title is causing this.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://popcar2.itch.io/godotos
  2. Zoom in your browser to 120% (or more if you're using a higher resolution than 1080p)
  3. Maximize any window and try to click the window's top right buttons

Expected behavior The mouse should either pass through the panel to the game, or the panel should shrink to not overlap the game.

Screenshots Included above.

Desktop (please complete the following information):

VirtualNomad19 commented 3 months ago

if you have css access, you can add the following inside the Custom CSS prompt @ Edit theme to remove the Jam links (i found this suggestion on the itch discord server/not my code): #user_tools .jam_entry { display: none; }

ideally, "hide jam links" was a tick-box option @ Edit game but until that happens, this will work along with adding a banner to push the project down while the links stay at the top.

example of both to help rectify this common issue found HERE.