Skip to content

Commit

Permalink
fixup! feat(ui-widgets): add scrollarea
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Dec 6, 2024
1 parent 457b9e3 commit 2148dc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lib/ui-widgets/include/ui_widgets/scrollarea.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ typedef enum {

LIBUI_WIDGETS_BEGIN_DECLS

LIBUI_WIDGETS_PUBLIC void ui_scrollarea_content_update(ui_widget_t *w);

LIBUI_WIDGETS_PUBLIC void ui_scrollarea_set_wheel_scroll_direction(
ui_widget_t *w, ui_scrollarea_direction_t direction);

Expand Down
3 changes: 1 addition & 2 deletions lib/ui-widgets/src/scrollarea.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ static ui_widget_prototype_t *ui_scrollarea_content_proto;

static void ui_scrollarea_emit_scroll(ui_widget_t *w)
{
ui_event_t e;
ui_scrollarea_t *that = ui_widget_get_data(w, ui_scrollarea_proto);
ui_event_t e = { 0 };

ui_event_init(&e, "scroll");
e.cancel_bubble = true;
Expand Down

0 comments on commit 2148dc7

Please sign in to comment.