summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-07-19 11:28:29 +0300
committermaxim_productengine <mnikolenko@productengine.com>2019-07-19 11:28:29 +0300
commitb1231c33cab45667842f66ba0a91831fa9f1393c (patch)
tree38a872ff713db6d5230cbe2e8b22a77578762955
parent92a54be1ff0b1ccdae6e6eb444f02e9d65046fcb (diff)
SL-11557 FIXED [EEP] Clicking near a selected keyframe moves the keyframe
-rw-r--r--indra/newview/llfloatereditextdaycycle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp
index 0cbee7a3a6..233c78d072 100644
--- a/indra/newview/llfloatereditextdaycycle.cpp
+++ b/indra/newview/llfloatereditextdaycycle.cpp
@@ -1009,9 +1009,8 @@ void LLFloaterEditExtDayCycle::onFrameSliderMouseDown(S32 x, S32 y, MASK mask)
if (!slidername.empty())
{
- F32 sliderval = mFramesSlider->getSliderValue(slidername);
-
- if (fabs(sliderval - sliderpos) > LLSettingsDay::DEFAULT_FRAME_SLOP_FACTOR)
+ LLRect thumb_rect = mFramesSlider->getSliderThumbRect(slidername);
+ if ((x >= thumb_rect.mRight) || (x <= thumb_rect.mLeft))
{
mFramesSlider->resetCurSlider();
}