mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
onScroll not always called
onScroll callback wasn't always being called, fixed that.
This commit is contained in:
parent
1903413a54
commit
fe544597e3
1 changed files with 2 additions and 0 deletions
|
|
@ -493,6 +493,8 @@ void GuiScrollCtrl::calcThumbs()
|
|||
void GuiScrollCtrl::scrollDelta(S32 deltaX, S32 deltaY)
|
||||
{
|
||||
scrollTo(mChildRelPos.x + deltaX, mChildRelPos.y + deltaY);
|
||||
|
||||
onScroll_callback();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue