SpinBoxes don't work well for properties of DataTable rows

When adding a UPROPERTY to a struct that extends FTableRowBase (for use in a DataTable) which has a SpinBox widget (the thing you can drag with the mouse to change a numeric value), it does not work well. What I mean with ‘‘not working well’’ is that the value only updates once as you drag the mouse, and then no longer updates, as if you had released the mouse.

I suspect this may be related to the user interface responding to the change in value by also updating the rows shown in the top side of the frame for editing a DataTable. I have done some digging through the C++ code and debugging myself, and have noticed that, for some reason, the spinner widget no longer keeps the mouse captured. The OnEndSliderMovement event is only called if you drag the mouse by a VERY tiny amount, such that the mouse is actually still on top of the two little arrows that you first click to start dragging. If you drag the mouse any further, the OnEndSliderMovement event is never called anymore.

Steps to reproduce:

  1. Create a struct that extends FTableRowBase
  2. Add a UPROPERTY with a spinner widget (for instance, a float).
  3. Create a new Data Table (through Miscellaneous → Data Table) asset using the new struct and open it
  4. Add a new row to the Data Table
  5. Try changing the value of the float property by dragging with the mouse. It should only update once by a small amount, and then stop updating until you release the mouse and click it again to start dragging again (which will again only work for a small update value, etc.)

Here’s some code for the first 2 steps:

USTRUCT()
struct FTestTableRowStruct : public FTableRowBase
{
	GENERATED_USTRUCT_BODY()

public:
	UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Test")
	float TestFloat;
}

Hey Dennis-

I was able to reproduce the behavior you described in the 4.12.5 engine however when I tested again in 4.13.0 it appears that this is fixed there. You should be able to make a copy of your project in 4.13 and use the slider normally.

Cheers

Alright, thanks. I cannot upgrade the project to 4.13 right away, first need to make sure the other team members also have time to download that version of the engine… but good to know at least that once we do get around to upgrading, this issue should be fixed.