Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbilityPicker Empty Selection Error #13186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johannes-wolf
Copy link

@johannes-wolf johannes-wolf commented Dec 25, 2024

It is possible to remove the selection by holding down CTRL+Draging/Clicking on an item.
This can happen if one wants to hold priority and keeps holding down CTRL while picking an ability.
With this fix, we do not call objectMouseClicked with an empty seletction anymore.

Changes:

  • Do not call objectMouseClicked with an empty selection
  • Use Font.BOLD instead of 1
  • Simplify mouseWheelMoved event

Fixes #13148

@JayDi85 JayDi85 self-assigned this Dec 25, 2024
@johannes-wolf johannes-wolf force-pushed the ability-selection-picker-oob branch 2 times, most recently from 3894abf to 9115de8 Compare December 25, 2024 23:58
Do not call objectMouseClicked with an empty
selection.

Handle selection clamping in a ListSelectionListener.

Fixes magefree#13148
@johannes-wolf johannes-wolf force-pushed the ability-selection-picker-oob branch from 9115de8 to 927884e Compare December 25, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLIENT - unhandled error in GUI - ArrayIndexOutOfBoundsException
2 participants