Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Dragging mouse from purchase/collection popup from inside to outside closes it

A topic by komehara created Mar 31, 2021 Views: 168
Viewing posts 1 to 1

After opening the purchase or collection popup on a game page, I noticed a problematic behavior with the mouse.

Clicking inside the popup, holding the button outside it, and releasing the button outside the popup will close it (more details for repro below).

This sounds like a weird thing to do, but actually happens when trying to highlight text inside the popup and overshoot a bit before releasing the mouse.

To be more exact:

  1. In the browser (at least on Firefox), this only happens when clicking on the popup area, but outside a text field. This covers most cases since highlighting text is particularly useful for text field (e.g. to copy or delete your address in the purchase by card form), in which case the popup doesn’t close even if you overshoot. However, if you want to highlight and copy non-editable text on the popup, the issue remains.
  2. In the desktop app (which is just using a embedded web page, really), at least on Linux, it always happens, even if you highlighted from inside a text field. I discovered the bug while actually trying to highlight and clear a field in the purchase form.

I don’t know why this particular behavior differs between browser and desktop. Maybe preventing popup close when the click started inside the popup would fix the issue on both sides altogether.

Repro example:

  1. Go to a game page
  2. Click on Add to collection
  3. Hold mouse click inside text field, and release button outside popup => only desktop version should close popup
  4. Redo 2., but hold mouse click outside text field, trying to highlight normal popup text. Release outside popup. => both versions should close popup

Interestingly I had the very same issue on Discord. However, the browser version didn’t have the issue, a bit like here. So it may really be a difference of default behavior on Firefox vs electron (or whatever you use to embed html), and this would need to be made explicit for consistency.