mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
class BottomSheetView : public DialogView
|
||||
{
|
||||
public:
|
||||
void HandlePenDown(const Point& touchPoint, FocusManager& focusManager) override;
|
||||
void HandlePenMove(const Point& touchPoint, FocusManager& focusManager) override;
|
||||
void HandlePenUp(const Point& lastTouchPoint, FocusManager& focusManager) override;
|
||||
|
||||
Rectangle GetBounds() const override
|
||||
{
|
||||
return Rectangle(_position.x, _position.y, 256 - _position.x, 192 - _position.y);
|
||||
@@ -16,4 +20,10 @@ public:
|
||||
}
|
||||
|
||||
constexpr DialogType GetDialogType() const override { return DialogType::BottomSheet; }
|
||||
|
||||
protected:
|
||||
virtual void Close() = 0;
|
||||
|
||||
private:
|
||||
bool _oobPenDown = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user