diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2019-07-19 11:28:29 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2019-07-19 11:28:29 +0300 |
commit | b1231c33cab45667842f66ba0a91831fa9f1393c (patch) | |
tree | 38a872ff713db6d5230cbe2e8b22a77578762955 | |
parent | 92a54be1ff0b1ccdae6e6eb444f02e9d65046fcb (diff) |
SL-11557 FIXED [EEP] Clicking near a selected keyframe moves the keyframe
-rw-r--r-- | indra/newview/llfloatereditextdaycycle.cpp | 5 |
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(); } |