[GAMEPLAY] — Incorrect Cursor Position when using Ping Menu

HIS A5SISTANT·9/15/2016, 11:29:30 PM·1 votes·982 views

[GAMEPLAY] — Incorrect Cursor Position when using Ping Menu When opening the Ping Menu sometimes (I believe it's when the ping menu is opened on the same frame that the mouse is moving in any direction), the cursor's position will be updated to an incorrect position. (In the video, I'm only moving the cursor downwards, but this bug occurs when moving the cursor in any direction)

The resulting cursor position when the bug occurs will always be double the distance the cursor was away from the center of the screen.

For example: center of the screen being the origin (which appears to be the case) — if you open the Ping Menu (while the mouse is moving, or whatever causes this bug) when your cursor's X is 50, Y is 50 and the bug occurs... The result is that the Ping Menu will open up correctly at 50,50 but your mouse position will now be 100,100.

This behavior again, occurs in any direction. A initial position of -500, 0 will result in position -1000, 0. 0, 200 -> 0, 400 -20, -600 -> -40, -1200 This happens regardless of if the camera is locked or not. The cursor's position will also escape normal window boundaries.

I believe what's going on is that there's a special case calculation that takes place when the Ping Menu is opened while the cursor is moving. The purpose of this calculation is to correct for the distance that the mouse was moving that frame... or something along those lines.

Unfortunately, somewhere, somebody accidentally coded something to multiply the return values by two.


SOMETHING TO NOTE: I'm playing on a 4K monitor, I don't know if this causes issues with the intended/actual origin — I can imagine whatever calculations are being used, could work as intended if the point of origin were in a corner.

On that note — if a Rioter (or other individual) sees this message — if you know/can, could you please point me in the direction of where I could make suggestions to a UI designer/programmer on the Riot team? I have a small suggestion I would like to give regarding the scaling behavior of certain UI elements.

1 Comments

Helpless Old Man9/16/2016, 3:02:56 AM1 votes

So, I have an idea to get around it... If you bind the pings to your keyboard, (I use h, j, k, l), then you could ping without using the mouse and get around the bug. But, if you don't want to do that, then I have no idea... Hope it helps!