Fork me on GitHub
#humbleui
<
2024-08-02
>
fricze13:08:40

https://github.com/fricze/hnhnhn/blob/main/src/scrollable.clj I added HScrollable to my HN client. not thoroughly tested, but first impression I have is that it works, which is really nice. and I implemented pages list that scroll horizontally when user scrolls with shift pressed

fricze13:08:21

@tonsky is :delta-x and :modifiers on event implemented in Humble or Skija?

fricze13:08:10

because I was positively surprised that those values are just accessible so making HScrollable from VScrollable was super easy. I didn’t even have to check whether Shift is pressed, because delta-x is automatically calculated when it is

Niki13:08:34

Shift is some backwards compatibility thing, trackpads for example can scroll horizontally natively, same as some mice

fricze14:08:24

just checked trackpad, super nice