UScrollBox::AlwaysShowScrollbarTrack has its own getter/setter function (SetAlwaysShowScrollbarTrack/IsAlwaysShowScrollbarTrack).
In another property for UScrollBox::bAllowRightClickDragScrolling, the getter/setter function incorrectly references AlwaysShowScrollbarTrack.
Suggested code:
void UScrollBox::SetAllowRightClickDragScrolling(bool NewAlwaysShowScrollbarTrack) { #if 0 AlwaysShowScrollbarTrack = NewAlwaysShowScrollbarTrack; #else bAllowRightClickDragScrolling = NewAlwaysShowScrollbarTrack; #endif if (MyScrollBox) { #if 0 MyScrollBox->SetScrollBarTrackAlwaysVisible(AlwaysShowScrollbarTrack); #else MyScrollBox->SetScrollBarTrackAlwaysVisible(bAllowRightClickDragScrolling ); #endif } } bool UScrollBox::IsAllowRightClickDragScrolling() const { #if 0 return AlwaysShowScrollbarTrack; #else return bAllowsRightClickDragScrolling; #endif }
When bAllowRightClickDragScrolling=false and AlwaysShowScrollbarTrack=true in Scrollbar, UScrollBox::IsAllowRightClickDragScrolling() returns True. Here we expect False.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-194050 in the post.
0 |
Component | UE - Editor - UI Systems - UMG |
---|---|
Affects Versions | 5.2 |
Target Fix | 5.4 |
Fix Commit | 30417880 |
---|---|
Main Commit | 30417882 |
Created | Aug 28, 2023 |
---|---|
Resolved | Dec 20, 2023 |
Updated | Jan 20, 2024 |