Erik Andresen
|
aac031489c
|
Merge remote-tracking branch 'upstream/master' into calendar
|
2023-10-19 19:47:16 +02:00 |
thyttan
|
7bf3a846c2
|
setting: Prepend 'LCD->Calibration' touch listener
...and stop event propagation.
|
2023-10-19 19:28:43 +02:00 |
Gordon Williams
|
503516e42a
|
fix settings not loading if no calendar.days.json file exists
|
2023-10-19 14:06:53 +01:00 |
Gordon Williams
|
9da07b3d51
|
Merge pull request #2953 from thyttan/ui-slider-lib
[Slider] New library for input via sliders
|
2023-10-19 09:54:32 +01:00 |
thyttan
|
71a445c96e
|
Slider: formatting Slider.md
|
2023-10-18 23:20:46 +02:00 |
thyttan
|
8bd1cbb2a8
|
Slider: add to documentation re timeout
|
2023-10-18 23:14:03 +02:00 |
Ben Jabituya
|
35ed55a24e
|
Update app.js
|
2023-10-18 21:32:46 +01:00 |
Ben Jabituya
|
9c7e8e168a
|
Update README.md
|
2023-10-18 21:32:20 +01:00 |
Ben Jabituya
|
11aa21386f
|
Update app.js
|
2023-10-18 21:30:33 +01:00 |
thyttan
|
05e2ff899c
|
Slider: add to documentation Slider.md
|
2023-10-18 21:55:59 +02:00 |
Erik Andresen
|
1500e68011
|
scicalc: Add swipe up action
Swiping up has now the same effect as hitting the "<" button.
|
2023-10-18 18:37:15 +02:00 |
Ben Jabituya
|
fbcc56a09c
|
Update app.js
|
2023-10-18 10:45:25 +01:00 |
Gordon Williams
|
fd750b1ba8
|
Merge pull request #3053 from nxdefiant/master
grocery: Drop grocery.html
|
2023-10-18 08:25:44 +01:00 |
thyttan
|
03a1f10d45
|
Slider: auto indentation
|
2023-10-18 01:18:57 +02:00 |
thyttan
|
bdf7aab65c
|
Slider: remove development try-catch statement
|
2023-10-18 01:16:15 +02:00 |
thyttan
|
04c5cbd516
|
Slider: update documentation
|
2023-10-18 01:06:21 +02:00 |
thyttan
|
4d7bcce070
|
Slider: remove unnecessary spaces
|
2023-10-18 00:35:42 +02:00 |
thyttan
|
5156b8a3e5
|
Slider:add param for auto progress update interval
|
2023-10-18 00:17:59 +02:00 |
thyttan
|
4d6edb1292
|
Slider: add missing semicolons
|
2023-10-17 23:21:56 +02:00 |
thyttan
|
6c1fb8cc18
|
Slider: shrink borders if too big
... which would cause glitches.
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
0c12bfab8a
|
Slider: move and refactor step size calculation
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
7e01449705
|
Slider: remove unnecessary condition check
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
eb52a9aca4
|
Slider: update documentation at Slider.md
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
c4ba51a498
|
Slider: fix logic re roundedness
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
cd67e0d143
|
Slider: add comment tags
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
ac27deba0f
|
Slider: scale default borders with appRect width
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
0fbcb34896
|
Slider: remove two lines of debug
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
0a1e3a6590
|
Slider: add initial comments
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
186832faa4
|
Slider:make rounded mode dynamic, depend on width
Fixes graphics for different size sliders.
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
b2a72dccc7
|
Slider: move let statement out of function scope
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
9d532a82d9
|
Slider: fix callback running prematurely
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
962d87442e
|
Slider: add `FIXME:` comment re error in callback
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
ee5e08d8fe
|
Slider: add level to auto callback
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
bbb2907a54
|
Slider:update `currLevel`->`initLevel`, and tweaks
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
ac568fb332
|
Slider: change `currLevel` -> `initLevel`
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
8cf9cd77bb
|
Slider: add tip to Slider.md, and tweaks
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
070d3d4f1d
|
Slider: update Slider.md re mode:"incr"/"map"
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
fae1025494
|
Slider: fix Slider.md code blocks
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
9b882c24bd
|
Slider: refactor useIncr/Map -> mode:"incr"/"map"/
/"mapincr"
Thanks @bobrippling
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
3afd9ac126
|
Slider: remove unnecessary var initialization
Co-authored-by: Rob Pilling <robpilling@gmail.com>
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
3adb21d035
|
Slider: shorten conditional assignment logic
Co-authored-by: Rob Pilling <robpilling@gmail.com>
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
40c205c042
|
Slider: callback first, then draw
as per: https://github.com/espruino/BangleApps/pull/2953#discussion_r1350097601
To still be able to draw on top of the slider, in the callback wrap the extra drawing inside a `setTimeout(extraDraw,0)` or similar.
Thanks @bobrippling!
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
93112f40df
|
Slider: fix cbObj undefined
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
01cf0fb202
|
Slider: disregard laziness on max/min levels
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
bcb6e0ca01
|
Slider: ask what the screens height is
Should make this more likely to work on different size screens.
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
408990d919
|
Slider:move draw and cb to deduplicate code
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
944da80186
|
Slider: reorder default config values
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
795fec654e
|
Slider: tweak documentation in slider.md
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
a9562b844f
|
Slider:use actual current level for auto progress
|
2023-10-17 22:49:32 +02:00 |
thyttan
|
9b1cfd4836
|
Slider: `ebLast` and `dy` only needed with draging
|
2023-10-17 22:49:32 +02:00 |