dont send notifications if the value is not changed by the user
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17377 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3d8b4bab1f
commit
3b55bd0c3c
@ -273,7 +273,9 @@ SeekSlider::ResizeToPreferred()
|
|||||||
void
|
void
|
||||||
SeekSlider::SetPosition(float position)
|
SeekSlider::SetPosition(float position)
|
||||||
{
|
{
|
||||||
SetValue(fMinValue + (int32)floorf((fMaxValue - fMinValue) * position + 0.5));
|
int32 value = fMinValue + (int32)floorf((fMaxValue - fMinValue) * position + 0.5);
|
||||||
|
if (value != Value())
|
||||||
|
BControl::SetValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user