XPortal icon indicating copy to clipboard operation
XPortal copied to clipboard

Unable to scroll portal list

Open Quentin-ctrL opened this issue 2 years ago • 4 comments

Hi,

I have more than 80 portals and it's difficult to choose between them with the controller. When we open the list we can see the first 20 portals (approximately). Using D-Pad Up' / 'D-Pad Down' we can choose previous or next portal . We can alternatively use joystick (faster) After the 20th items, we don't see what is selected.

In fact, the scroll bar is not focusing the selection. Without a mouse, it's impossible to scroll the portal list.

Regards.

Let me know if you need more details. Without this problem Gamepad support is excellent (adding keyhints would be perfect)

Quentin-ctrL avatar Apr 01 '23 22:04 Quentin-ctrL

Hi, thanks for reporting!

I think I understand what you mean. I'll see what I can do about this.

As for keyhints, they're coming in the next release, see #32 ;)

SpikeHimself avatar Apr 01 '23 23:04 SpikeHimself

Just to keep you updated, I am still working on this, but it's a lot harder than I expected.

The reason this isn't working, is not a fault of XPortal or Valheim, but it's a bug in Unity itself. So I have to build a work-around to "manually" make the dropdown scroll to the selected item, and, as with anything UI-related in Unity, this is difficult.

It was first reported in 2016:

  • https://forum.unity.com/threads/ui-dropdown-not-scrolling-on-keyboard-or-controller-input.380678/

Unity staff said they acknowledge that there is a bug, but they will not work on it:

  • https://fogbugz.unity3d.com/default.asp?764029_6iphtmkmoju5q5i9

The issue still exists in 2019:

  • https://forum.unity.com/threads/unity-dropdown-scroll-using-controller-or-keyboard.750824/

SpikeHimself avatar Apr 17 '23 11:04 SpikeHimself

Hi @Quentin-ctrL first of all thank you very much for your continued support. The issue you've reported here really annoys me, but after many hours of struggling I cannot find a feasible way to fix it.

I am leaving the issue open in case anyone else wants to look at it, but I regret to say that I have given up.

SpikeHimself avatar Jun 13 '23 18:06 SpikeHimself

If it's Unity's bug and hard work, don't waste your time. It's a minor issue so let's focus on major issue or other projects.

Thanks for your time and your effort :)

Quentin-ctrL avatar Jun 14 '23 20:06 Quentin-ctrL