-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Recycling a SliderCell triggers the "value changed event" in different properties when typing the value, instead of sliding the slider.
Proposed fix:
--- a/Assets/UnityDebugSheet/Runtime/Core/Scripts/DefaultImpl/Cells/SliderPickerCell.cs
+++ b/Assets/UnityDebugSheet/Runtime/Core/Scripts/DefaultImpl/Cells/SliderPickerCell.cs
protected override void SetModel(SliderCellModel model)
{
_contentsCanvasGroup.alpha = model.Interactable ? 1.0f : 0.3f;
// Cleanup
valueField.onValueChanged.RemoveAllListeners();
+ valueField.onEndEdit.RemoveAllListeners();
slider.onValueChanged.RemoveAllListeners();
...
}Metadata
Metadata
Assignees
Labels
No labels