[NUI.Components] Guard more cases when Container disposed
authorEunki Hong <eunkiki.hong@samsung.com>
Wed, 21 Feb 2024 16:35:56 +0000 (01:35 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 27 Feb 2024 08:13:01 +0000 (17:13 +0900)
commit3036e2cd7829501d0073813c293b8828790b65a1
treeee8aa5919b314674f32323f586a5e85021830d44
parent4a6b77d9dd76165d512b0602191bdb3eec13b078
[NUI.Components] Guard more cases when Container disposed

It might be possible if Container is disposed before ScrollBase disposed.

If then, Several logics breakdown.

Note : Since ScrollBase is time critical logics. So it is heavy to ensure the Container exist
at every Container usage.

Instead, let we just check Container is null at `OnScrollAnimationEnded` only,
which user can call immediatly by `Dispose()` API.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI.Components/Controls/ScrollableBase.cs