The issue is in Slab/Internal/Input/Mouse.lua
Replace
Code: Select all
local function OnMouseMoved(X, Y, DX, DY, IsTouch)
State.X = X
State.Y = Y
State.AsyncDeltaX = State.AsyncDeltaX + DX
State.AsyncDeltaY = State.AsyncDeltaY + DY
end
Code: Select all
local function OnMouseMoved(X, Y, DX, DY, IsTouch)
State.X = X
State.Y = Y
State.AsyncDeltaX = State.AsyncDeltaX + DX
State.AsyncDeltaY = State.AsyncDeltaY + DY
if MouseMovedFn ~= nil then
MouseMovedFn(X, Y, DX, DY, IsTouch)
end
end
It seems that Slab hijacks the love handler functions, but the default love handler for mouse moving was not called
unlike other ones. I cannot guess if this was intentional or not, at least it solves my issue with possibly the drawback that if
I move one Slab gui, it may also move the background :
is there any simple way to check if any of the slab window is hovered or not ?