From 24dac61abf62e598cec3b42f99d43e29fda1a15e Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 5 Sep 2022 10:38:04 +0200 Subject: [PATCH] chore: code formatting --- src/core/lv_event.h | 4 ++-- src/core/lv_indev.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/lv_event.h b/src/core/lv_event.h index 79141e7d2..20385fee9 100644 --- a/src/core/lv_event.h +++ b/src/core/lv_event.h @@ -42,8 +42,8 @@ typedef enum { LV_EVENT_CLICKED, /**< Called on release if not scrolled (regardless to long press)*/ LV_EVENT_RELEASED, /**< Called in every cases when the object has been released*/ LV_EVENT_SCROLL_BEGIN, /**< Scrolling begins. The event parameter is a pointer to the animation of the scroll. Can be modified*/ - LV_EVENT_SCROLL_THROW_BEGIN, - LV_EVENT_SCROLL_END, /**< Scrolling ends*/ + LV_EVENT_SCROLL_THROW_BEGIN, + LV_EVENT_SCROLL_END, /**< Scrolling ends*/ LV_EVENT_SCROLL, /**< Scrolling*/ LV_EVENT_GESTURE, /**< A gesture is detected. Get the gesture with `lv_indev_get_gesture_dir(lv_indev_get_act());` */ LV_EVENT_KEY, /**< A key is sent to the object. Get the key with `lv_indev_get_key(lv_indev_get_act());`*/ diff --git a/src/core/lv_indev.c b/src/core/lv_indev.c index fe3bba2c1..064464256 100644 --- a/src/core/lv_indev.c +++ b/src/core/lv_indev.c @@ -982,7 +982,8 @@ static void indev_proc_release(_lv_indev_proc_t * proc) lv_event_send(indev_obj_act, LV_EVENT_CLICKED, indev_act); if(indev_reset_check(proc)) return; - } else { + } + else { lv_event_send(scroll_obj, LV_EVENT_SCROLL_THROW_BEGIN, indev_act); if(indev_reset_check(proc)) return; }