Skip to content

Commit

Permalink
[BUGFIX][Region]: Fixed issue where user input is locked up when usin…
Browse files Browse the repository at this point in the history
…g the mouse wheel.
  • Loading branch information
coding-jackalope committed Sep 4, 2019
1 parent bdc4653 commit e4d8ee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion API.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ local Slab = {}
-- Slab version numbers.
local Version_Major = 0
local Version_Minor = 6
local Version_Revision = 0
local Version_Revision = 1

local FrameNumber = 0
local FrameStatHandle = nil
Expand Down
5 changes: 4 additions & 1 deletion Internal/UI/Region.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ function Region.End()
DrawCommands.TransformPop()
DrawScrollBars(ActiveInstance)

if HotInstance == ActiveInstance and WheelInstance == nil and (WheelX ~= 0.0 or WheelY ~= 0.0) then
if HotInstance == ActiveInstance
and WheelInstance == nil
and (WheelX ~= 0.0 or WheelY ~= 0.0)
and not ActiveInstance.IgnoreScroll then
WheelInstance = ActiveInstance
end

Expand Down

0 comments on commit e4d8ee3

Please sign in to comment.