-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor common widgets constant to "gui.widgets.common" module
- Loading branch information
1 parent
4144b0e
commit 52ed516
Showing
6 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local _ENV = mkmodule('gui.widgets.common') | ||
|
||
DOUBLE_CLICK_MS = 500 | ||
|
||
---@enum STANDARDSCROLL | ||
STANDARDSCROLL = { | ||
STANDARDSCROLL_UP = -1, | ||
KEYBOARD_CURSOR_UP = -1, | ||
STANDARDSCROLL_DOWN = 1, | ||
KEYBOARD_CURSOR_DOWN = 1, | ||
STANDARDSCROLL_PAGEUP = '-page', | ||
KEYBOARD_CURSOR_UP_FAST = '-page', | ||
STANDARDSCROLL_PAGEDOWN = '+page', | ||
KEYBOARD_CURSOR_DOWN_FAST = '+page', | ||
} | ||
SCROLL_INITIAL_DELAY_MS = 300 | ||
SCROLL_DELAY_MS = 20 | ||
|
||
return _ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters