How to prevent button from changing state after long press

Description

How to prevent button from changing state after long press?

What LVGL version are you using?

8.2 in combination with SquareLine Studio

What do you want to achieve?

A button which can be used to switch on and off a lamp. But when long pressed enable e.g. brightness control. But after the long press the button state should not change.