mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
add mouse wheel events and scroll attribute
This commit is contained in:
@@ -122,6 +122,20 @@ function Attribute.style (widget, value)
|
||||
widget.reshape(widget.parent or widget)
|
||||
end
|
||||
|
||||
--[[--
|
||||
Scroll ability.
|
||||
|
||||
Should contain `true` or `false` (or `nil`).
|
||||
|
||||
If set to `true`, moving the scroll wheel over the widget will adjust
|
||||
its scroll position when the widget's contents overflow its boundary.
|
||||
|
||||
@attrib scroll
|
||||
--]]--
|
||||
function Attribute.scroll (widget, value)
|
||||
widget.attributes.scroll = value
|
||||
end
|
||||
|
||||
--[[--
|
||||
Size Attributes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user