Fix microstutter when pressing modifiers

Where "modifiers" are Shift, Alt, etc.

Fixes #1
This commit is contained in:
2022-12-04 21:51:29 -06:00
parent b517fbf9f6
commit de6924ee14
2 changed files with 5 additions and 7 deletions

View File

@ -479,7 +479,6 @@ function Breakables:RegisterEvents()
self:RegisterEvent("PLAYER_REGEN_DISABLED", "OnEnterCombat")
self:RegisterEvent("PLAYER_REGEN_ENABLED", "OnLeaveCombat")
self:RegisterEvent("MODIFIER_STATE_CHANGED", "FindBreakables")
self:RegisterEvent("SPELLS_CHANGED", "OnSpellsChanged")
-- this will show lockboxes if the player gains a level that then enables opening that box
self:RegisterEvent("PLAYER_LEVEL_UP", "FindBreakables")
@ -496,12 +495,6 @@ function Breakables:RegisterEvents()
end
end
function Breakables:OnModifierChanged()
if showingTooltip ~= nil and not self.bCombat then
self:OnEnterBreakableButton(showingTooltip)
end
end
function Breakables:OnDisable()
self:UnregisterAllEvents()
self.frame:SetScript("OnUpdate", nil)

View File

@ -1,3 +1,8 @@
v1.9.8:
- Add Dragonflight Mystic disenchantable items.
- Fix microstutter every time a modifier key, such as Alt, was pressed.
v1.9.7:
- Add Dragonflight lockboxes.