humbleui

fricze 2024-08-02T13:47:40.183869Z

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

fricze 2024-08-02T13:48:21.521819Z

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

fricze 2024-08-02T14:01:49.316099Z

thanks

fricze 2024-08-02T13:50:10.961059Z

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

Niki 2024-08-02T13:54:34.908519Z

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

fricze 2024-08-02T14:03:24.819019Z

just checked trackpad, super nice