mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Reimplement text edit scrolling in C++
* And update some corelib APIs
This commit is contained in:
@@ -24,3 +24,10 @@ function g_mouse.bindPressMove(widget, callback)
|
||||
return true
|
||||
end })
|
||||
end
|
||||
|
||||
function g_mouse.bindPress(widget, callback)
|
||||
connect(widget, { onMousePress = function(widget, mousePos, mouseButton)
|
||||
callback(mousePos, mouseButton)
|
||||
return true
|
||||
end })
|
||||
end
|
||||
|
Reference in New Issue
Block a user