|
|
Pretty sure by just setting the callback without saving the original callback, you've disabled Fl_Scroll's
default behavior. If you want to keep Fl_Scroll's behavior intact, you have to save the default Fl_Scroll::callback()
before changing it, then invoke that callback from your own, where you deem it appropriate in your code to do so.
This is useful so that your callback code can control what happens in the scrollback before letting Fl_Scroll do
what it needs to do. But like with handle() methods, you have to be sure to invoke the original widget's callback
from your own code, otherwise your code will eclipse the default behavior.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |