mirror of
https://github.com/parnic/breakables.git
synced 2025-06-16 09:30:13 -05:00
Fix microstutter when pressing modifiers
Where "modifiers" are Shift, Alt, etc. Fixes #1
This commit is contained in:
@ -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)
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user