Norbi
06/16/2024, 10:08 AMModifier
s?
(I mean nicer than using e.g. DisposableEffect()
.)
Thanks.David Herman
06/16/2024, 8:54 PMNorbi
06/16/2024, 9:12 PMDisposableEffect()
but the code is not nice...)David Herman
06/16/2024, 9:13 PMNorbi
06/16/2024, 9:14 PMDavid Herman
06/16/2024, 9:15 PMDavid Herman
06/16/2024, 9:16 PMDavid Herman
06/16/2024, 9:16 PMDavid Herman
06/16/2024, 9:16 PMDavid Herman
06/16/2024, 9:18 PMremember
block and then you have to get the raw HTML element out of the composable.David Herman
06/16/2024, 9:19 PMNorbi
06/16/2024, 9:19 PM<svg>
child elements when panning/zooming is in progress.
I found that capturing mouse events at the <svg>
element and stopping their propagation (in the capturing phase) to the child SVG elements is a very easy solution to achieve "disabling events".
I'm looking for the best way to achieve it with Compose HTML, currently I use DisposableEffect()
and I add/remove the event listeners manually.David Herman
06/16/2024, 9:20 PMNorbi
06/16/2024, 9:21 PMDavid Herman
06/16/2024, 9:23 PMEventListenerManager
utility classDavid Herman
06/16/2024, 9:23 PMclearAllListeners
in a dispose call.Norbi
06/16/2024, 10:01 PM