Skip to content

Commit

Permalink
Fix mouseover for spell panel items while scrolling in panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Apr 18, 2022
1 parent 18840b8 commit 6fd8fd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions EndlessClient/HUD/Spells/SpellPanelItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ public SpellPanelItem(ActiveSpellsPanel parent, int slot, IInventorySpell spell,
_spellLevelColor.SetData(new[] { Color.White });

_clickTime = DateTime.Now;

OnMouseEnter += (_, _) => SetIconHover(true);
OnMouseLeave += (_, _) => SetIconHover(false);
}

protected override void OnUpdateControl(GameTime gameTime)
{
DoClickAndDragLogic();

SetIconHover(MouseOver);

if (_lastSlot != DisplaySlot || _lastInventorySpell != InventorySpell)
{
//36 is full width of level bar
Expand Down

0 comments on commit 6fd8fd0

Please sign in to comment.