How do you capture mouse scroll wheel events? I wa...
# compose
s
How do you capture mouse scroll wheel events? I want to add some interactions for a custom UI component
I was looking at following this information, but
onPointerEvent
doesnt seem to exist on multiplatform/common code https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Mouse_Events/README.md#mouse-scroll-listeners
Or if there is a trick to get Horizontal Scrolling in a LazyRow in WASM working, that is really what I'm trying to do
This works functionally for those interested
scroll events only seem to come through as y/vertical in WASM
p
are you trying to to horizontally scroll a lazy row via the mouse without having to press shift?
s
I was just trying to get horizontally scrolling to work (in any fashion right now) in a Lazy Row in a WASM build, it appears the
delta.x
in my example is always 0. On Desktop builds shift + scroll works
p
Yeah i just checked and u cant shift click on wasm.... they should automatically scroll horizontally when scrolling with mouse wheel imo.... intellj tabs have this behaviour