-
Notifications
You must be signed in to change notification settings - Fork 318
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
FIX: Submit and Cancel actions should obey configured interactions. #1956
FIX: Submit and Cancel actions should obey configured interactions. #1956
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, suggest just getting a sanity check from @benoitalain or @bmalrat on this one in case of side effects. Would be awesome if it could be covered by an automated test as well (if not already covered by a test in UITests.cs).
Added @stefanunity for QA assessment. |
Seems good for me, I don't see any side effects for that one |
@smnwttbr I only believe conflicts need to be resolved and then I think you may merge this. |
I fixed the conflict in CHANGELOG.md and also moved the message from CHANGE to FIX since this was a bug report and behavior didn't do what it was supposed to. Let me know if you think it was an incorrect call. |
Description
Submit and Cancel actions were always triggered on a press event, even if the interaction was configured as ReleaseOnly. This PR changes that so that Interactions are respected. ISXB-841
Changes made
InputSystemUIInputModule was changed to use WasPerformedThisFrame() instead of WasPressedThisFrame().
Testing
Tested manually using project supplied in Jira.
Risk
These changes are fundamental to how the submit and cancel actions are triggered. Any projects relying on the old behaviour will be disrupted.
Checklist
Before review:
Changed
,Fixed
,Added
sections.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: