Description

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
}
Steps to Reproduce

When bAllowRightClickDragScrolling=false and AlwaysShowScrollbarTrack=true in Scrollbar, UScrollBox::IsAllowRightClickDragScrolling() returns True. Here we expect False. 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-194050 in the post.

0
Login to Vote

Fixed
ComponentUE - Editor - UI Systems - UMG
Affects Versions5.2
Target Fix5.4
Fix Commit30417880
Main Commit30417882
CreatedAug 28, 2023
ResolvedDec 20, 2023
UpdatedJan 20, 2024
View Jira Issue