Skip to content
Snippets Groups Projects
Commit 4a0311f8 authored by Oz Linden's avatar Oz Linden
Browse files

merge changes for storm-1712

parents f54caff1 6e2b3fd6
No related branches found
No related tags found
No related merge requests found
...@@ -590,6 +590,7 @@ Jonathan Yap ...@@ -590,6 +590,7 @@ Jonathan Yap
STORM-1659 STORM-1659
STORM-1674 STORM-1674
STORM-1685 STORM-1685
STORM-1712
STORM-1728 STORM-1728
Kadah Coba Kadah Coba
STORM-1060 STORM-1060
......
...@@ -468,7 +468,7 @@ void LLParticipantList::setValidateSpeakerCallback(validate_speaker_callback_t c ...@@ -468,7 +468,7 @@ void LLParticipantList::setValidateSpeakerCallback(validate_speaker_callback_t c
void LLParticipantList::updateRecentSpeakersOrder() void LLParticipantList::updateRecentSpeakersOrder()
{ {
if (E_SORT_BY_RECENT_SPEAKERS == getSortOrder()) if (E_SORT_BY_RECENT_SPEAKERS == getSortOrder() && !isHovered())
{ {
// Need to update speakers to sort list correctly // Need to update speakers to sort list correctly
mSpeakerMgr->update(true); mSpeakerMgr->update(true);
...@@ -477,6 +477,13 @@ void LLParticipantList::updateRecentSpeakersOrder() ...@@ -477,6 +477,13 @@ void LLParticipantList::updateRecentSpeakersOrder()
} }
} }
bool LLParticipantList::isHovered()
{
S32 x, y;
LLUI::getMousePositionScreen(&x, &y);
return mAvatarList->calcScreenRect().pointInRect(x, y);
}
bool LLParticipantList::onAddItemEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata) bool LLParticipantList::onAddItemEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{ {
LLUUID uu_id = event->getValue().asUUID(); LLUUID uu_id = event->getValue().asUUID();
......
...@@ -251,6 +251,8 @@ class LLParticipantList ...@@ -251,6 +251,8 @@ class LLParticipantList
*/ */
void adjustParticipant(const LLUUID& speaker_id); void adjustParticipant(const LLUUID& speaker_id);
bool isHovered();
LLSpeakerMgr* mSpeakerMgr; LLSpeakerMgr* mSpeakerMgr;
LLAvatarList* mAvatarList; LLAvatarList* mAvatarList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment