On Android tablets, floating windows are a big part of what makes Android apps still usable. However, when using discord, I repeatedly run into a bug with them.
As you can see, I can't click on anything in the left-most hamburger menu, which means I can't switch channels, switch servers, or even look at my DMs. However, this only happens when the floating window is to the right of the screen. When moved to the left, this functionality works.
This feels like maybe there's some jankey custom calculation of UI hitboxes here. Like, maybe discord team added some check to only activate click events for the hamburger menu when the click events are on the right side of the screen, and added code for other click events to close it (which would produce the 'click away to close' behavior for the menu). However, due to it being in a floating window, the click event that's happening is on the hamburger menu, but doesn't seem like it, since the whole window is at an offset. So, the click events wouldn't be recognized by discord's detection algorithm, but they'd also not be recognized as "out of bounds" by android's detection algorithm. This means that the menu wouldn't close, but the channel change / server change / list scroll action also wouldn't happen, which produces this weird behavior of the menu just being kinda unresponsive to input.
IDK, I'm just speculating at this point.
Zaloguj się, aby dodać komentarz.