Commit Graph

72 Commits

Author SHA1 Message Date
Richard Hozák
01e018b54c Fix scroll on mouse down being overriden by touch scroll
Fixes unexpected behavior when clicking on scrollbar with mouse,
the view would scroll the opposite direction as it would with touch scroll.

This behavior is unexpected with mouse.

The bug was probably caused by Clay_SetPointerState overriding scrollbarData
and using the pointer state as scroll information for the container
behind the scrollbar instead using the scrollbarData.

This fixes that behavior by not passing mouse down, when mouse down is captured by scrollbar.
2024-10-14 23:28:45 +02:00
johan0A
05eb12bed7
Made casting more explicit for better compatibility with different compilers (#41) 2024-10-12 13:25:22 +13:00
Nic Barker
4ce3105f58 Fix touch scrolling bug on official website 2024-10-12 13:16:25 +13:00
Nic Barker
9a8775751f Cleanup compiler options 2024-10-07 19:30:15 +13:00
Nic Barker
f579690f5d Improve space allocation for GROW containers 2024-10-07 18:56:13 +13:00
Nic Barker
d826187b50 Update odin bindings 2024-10-06 19:34:42 +13:00
Nic Barker
90b4b0de26 float cast to appease C++ 2024-10-06 13:32:55 +13:00
Nic Barker
843b5bfe89 Add numeric rounding to final bounding box output 2024-10-06 13:29:06 +13:00
Nic Barker
51082d2f1e
Change lineSpacing text config attribute to lineHeight (#37) 2024-10-05 20:57:52 +13:00
Nic Barker
26013e657f Fix a bug that causes incorrect allocation of total width to multiple SIZING_GROW children 2024-10-05 18:55:22 +13:00
Nic Barker
c3f2baf40a Fix a bug with scroll offset in scroll containers with GROW where contents were smaller than container 2024-10-05 11:59:29 +13:00
Patrik Smělý
c02db35554
[Bug] Fix NEWLINES wrap mode not being respected correctly (#36) 2024-10-04 14:30:49 +13:00
Nic Barker
2cf212e992 Update discord link to permanent and add note for discord link in readme 2024-10-04 10:19:08 +13:00
Nic Barker
761596b36c Add discord link to official website 2024-10-04 10:05:13 +13:00
Patrik Smělý
987e7fde5d
Fix bug in Clay_SetPointerState that causes null pointer deref (#33) 2024-10-02 15:05:52 +13:00
Nic Barker
948b7ce70b
C++20 Support (#31) 2024-09-29 12:53:46 +13:00
Nic Barker
21d9f06a47 Update odin bindings for CLAY_ID_LOCAL 2024-09-28 15:49:43 +12:00
Nic Barker
5e7c4c41eb
[C] Convert element macros to use for() internally (#30) 2024-09-28 15:43:29 +12:00
Nic Barker
1b410dd858 Remove github actions until further notice 2024-09-28 13:03:42 +12:00
Nic Barker
f19c72c4e1
Update cmake-multi-platform.yml 2024-09-28 12:58:15 +12:00
Nic Barker
3b6d417d64
Testing out github actions 2024-09-28 12:57:10 +12:00
Nic Barker
3b4c177e58
Fix const inits for gcc 9.4 and add docker tests for old gcc compiler (#29) 2024-09-28 07:42:08 +12:00
Bach Le
10cc866477
Add CLAY_LOCAL_ID[I] (#27) 2024-09-25 14:04:28 +12:00
Nic Barker
3775927e40 Replace const structs with macros to appease GCC 2024-09-25 13:43:23 +12:00
Bach Le
c60fb1300f
Initialize text measurement hashmap (#25) 2024-09-25 13:30:36 +12:00
Severin Denisenko
52b3f6a14e
Use shallow clone on Raylib (#23)
This change reduces time of project configuration from 24 second to 12 seconds
2024-09-22 13:27:29 +12:00
Michael Savage
3e0791bdc5
Don't use __VA_ARGS__ in a non-variadic macro (#21) 2024-09-21 08:14:54 +12:00
Nic Barker
6430bbbdc3 Fix warnings caused by misname 2024-09-21 08:13:22 +12:00
Nic Barker
5bb725d005 Fix forward declarations 2024-09-21 08:04:31 +12:00
Nic Barker
0903440a34 Add notice for defining implementation macro at the top of the file 2024-09-20 20:56:33 +12:00
Nic Barker
332837befd
Fix issues with multiple translation units (#20) 2024-09-20 20:46:48 +12:00
Nic Barker
b2d922c78d Fix a compile bug in update scroll containers 2024-09-20 07:12:11 +12:00
Nic Barker
f17afc387a Update version 2024-09-18 11:54:06 +12:00
Nic Barker
4bd9cd1956
Explain text wrap modes in README 2024-09-18 11:52:11 +12:00
Nic Barker
6600aa6678
Update README SetPointerPosition -> SetPointerState 2024-09-18 11:42:01 +12:00
Nic Barker
2729188a24 Rename parameter 2024-09-18 11:39:14 +12:00
Nic Barker
e139657ee1
README updates for 0.11 2024-09-18 11:38:58 +12:00
Nic Barker
3129a78536
Add description of Clay_ElementId to README 2024-09-18 11:17:54 +12:00
Nic Barker
33888572a3 Remove debug flags and switch example fonts from trilinear filter to bilinear 2024-09-18 10:59:35 +12:00
Nic Barker
d7a0a6cd50 Update odin bindings 2024-09-17 19:13:17 +12:00
Nic Barker
c6ab57c638 Add font preload to web renderers and update README 2024-09-17 19:05:59 +12:00
Nic Barker
a4f90a217d
Debug Tools (#15) 2024-09-16 21:34:59 +12:00
Laytan
b3d768c00d
Fix some Odin bindings (#16) 2024-09-13 13:38:39 +12:00
Nic Barker
807fd62cd8 Fix bug in text measurement cache 2024-09-02 11:06:14 +12:00
FourteenBrush
c248914292
[bindings/odin] Improve Odin bindings (#13) 2024-09-01 15:13:28 +12:00
Nic Barker
3e7738bee5 Add linux lib for odin bindings 2024-09-01 10:35:04 +12:00
Nic Barker
b64e318cdb Fix a small issue on the odin official website example 2024-09-01 10:25:42 +12:00
Dudejoe870
4d1b65071f Fix memory leak in odin website example (#12) 2024-09-01 10:25:25 +12:00
Dudejoe870
29ebed2010
Fix crash on Windows (#10) 2024-09-01 09:55:42 +12:00
Laytan
39c2aa5305
Support wasm in Odin bindings (#8) 2024-08-31 13:04:33 +12:00