mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
add horizontal scrolling, fix #3
This commit is contained in:
@@ -211,11 +211,15 @@ function Input:handleReshape (layout, width, height)
|
||||
})
|
||||
end
|
||||
|
||||
function Input:handleWheelMove (layout, x, y)
|
||||
local mx, my = Backend.getMousePosition()
|
||||
local hit, widget = checkHit(layout:getWidgetAt(mx, my), layout)
|
||||
function Input:handleWheelMove (layout, scrollX, scrollY)
|
||||
local x, y = Backend.getMousePosition()
|
||||
local hit, widget = checkHit(layout:getWidgetAt(x, y), layout)
|
||||
|
||||
widget:bubbleEvent('WheelMove', { hit = hit, x = x, y = y })
|
||||
widget:bubbleEvent('WheelMove', {
|
||||
hit = hit,
|
||||
x = x, y = y,
|
||||
scrollX = scrollX, scrollY = scrollY
|
||||
})
|
||||
|
||||
return hit
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user