<@U0BMF6PDJ> two months ago I reported an issue ab...
# webassembly
b
@bashor two months ago I reported an issue about clicks via a physical mouse not working consistently in compose wasm applications. I haven't seen any movement on the ticket. I think this is one of the more embarrassing compose wasm bugs and I am curious why it is not being prioritized. https://youtrack.jetbrains.com/issue/CMP-7576/Modifier.clickable-not-triggered-consistently-in-wasm-application-when-using-standalone-mouse
m
Is it possible you are suffering from a touch slop problem? See, e.g.: https://medium.com/@thepraveshsinghh/prevent-accidental-swipe-while-scrolling-in-lazycolumn-56b1bf6b9321 A click is determined when the mouse button is released at (nearly) the same position as it was pressed. Otherwise it is a drag. The ripple effect already seems to be triggered by the initial press. In order to verify this make sure not to move the mouse when you are performing the click.
b
I think that is it! If I consciously try to keep the mouse as still as possible, then I am not able to reproduce the issue. I think the gesture detection for Modifier.clickable perhaps needs to be special cased and fine tuned for physical mouses to better match default web gesture detection.
b
@Brendan Weinstein thanks for the heads up, we’ll double check it.
thank you color 1
May it be because of orders of applying modifiers, so effectively only small part of your control is clickable?
b
@bashor I am seeing this on all wasm demo applications (eg https://zal.im/wasm/jetsnack/ )
b
@Brendan Weinstein could you please share repro instructions and/or video?
b
wasmMouseBug.mov
I am using apple bluetooth mouse. Here are my speed settings. When I first reported this on slack a few months ago, two other folks were able to reproduce https://kotlinlang.slack.com/archives/CDFP59223/p1739094593064979?thread_ts=1738973399.236499&amp;cid=CDFP59223
b
@Brendan Weinstein great, thanks! Could you please make the same recording with
Show Mouse Clicks
on?
b
@bashor Here ya go, you can see the clicks in my past video via the ripples on the buttons
🙏 1