Commit graph

12 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
Nic Barker f579690f5d Improve space allocation for GROW containers 2024-10-07 18:56:13 +13:00
Nic Barker 51082d2f1e
Change lineSpacing text config attribute to lineHeight (#37) 2024-10-05 20:57:52 +13:00
Nic Barker 5e7c4c41eb
[C] Convert element macros to use for() internally (#30) 2024-09-28 15:43:29 +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
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 33888572a3 Remove debug flags and switch example fonts from trilinear filter to bilinear 2024-09-18 10:59:35 +12:00
Nic Barker a4f90a217d
Debug Tools (#15) 2024-09-16 21:34:59 +12:00
Nic Barker fd45138d57
Stardardisation / cleanup work for private API functions (#7) 2024-08-30 18:44:36 +12:00
Nic Barker e0f7a23f1a
Expose scroll container data and implement scrollbar example (#1) 2024-08-26 19:05:43 +12:00
Nic Barker 03a6c6cf5a initial commit 2024-08-23 16:11:56 +12:00