https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    03/01/2023, 4:56 PM
    as not billy said the simplest way would be to restyle the checkbox, working example: http://haxeui.org/builder/?6a69d6c7
  • a

    ambitious-knife-25690

    03/01/2023, 5:02 PM
    @bright-gpu-74537 How does haxeui manage the events from a backend perspective?
  • a

    ambitious-knife-25690

    03/01/2023, 5:02 PM
    It seems like the way ceramic works is if a child listens to a pointer event, it will steal focus from the parent
  • a

    ambitious-knife-25690

    03/01/2023, 5:03 PM
    so for something like a dropdown that is likely composed of multiple parts - do all the children listen to pointer events in some way?
  • b

    bright-gpu-74537

    03/01/2023, 5:03 PM
    what do you mean "steal focus"?
  • b

    bright-gpu-74537

    03/01/2023, 5:04 PM
    yeah, each item renderer will be listening for mouse events
  • a

    ambitious-knife-25690

    03/01/2023, 5:04 PM

    https://media.discordapp.net/attachments/853414608747364352/1080523580061790268/gif.gif▾

  • a

    ambitious-knife-25690

    03/01/2023, 5:04 PM
    so this is essentially what is happening in the backend
  • a

    ambitious-knife-25690

    03/01/2023, 5:05 PM
    where the upper pink square is a child of the larger green square
  • a

    ambitious-knife-25690

    03/01/2023, 5:05 PM
    but because it sets a pointer event, it steals focus
  • a

    ambitious-knife-25690

    03/01/2023, 5:05 PM
    which is where my interaction issues with particular components in the backend is coming from it seems like
  • b

    bright-gpu-74537

    03/01/2023, 5:06 PM
    so you are saying if you have a box in a box, and both have mouse handlers, then only the sub box will get the event?
  • a

    ambitious-knife-25690

    03/01/2023, 5:06 PM
    yeah
  • a

    ambitious-knife-25690

    03/01/2023, 5:08 PM
    removing the pointer events from the pink square and things work as one would expect
  • b

    bright-gpu-74537

    03/01/2023, 5:08 PM
    seems like odd beahviour for ceramic... not sure the easiest way to work around it
  • a

    ambitious-knife-25690

    03/01/2023, 5:08 PM
    i'm a bit confused here as well
  • a

    ambitious-knife-25690

    03/01/2023, 5:09 PM
    cause there are going to be components with multiple reasons to click within a single parent
  • b

    bright-gpu-74537

    03/01/2023, 5:09 PM
    there are various cases where you might have a component tree with click events all over the place
  • a

    ambitious-knife-25690

    03/01/2023, 5:12 PM
    it is intended to work like this
  • a

    ambitious-knife-25690

    03/01/2023, 5:13 PM
    I can understand it, but from a haxeui side I'm not sure how to circumvent it
  • a

    ambitious-knife-25690

    03/01/2023, 5:14 PM
    or even work with it somehow
  • a

    ambitious-knife-25690

    03/01/2023, 5:15 PM
    with the drop down example, why does the select box have multiple event listeners?
  • a

    ambitious-knife-25690

    03/01/2023, 5:16 PM
    (the box you click on to open the drop down)
  • a

    ambitious-knife-25690

    03/01/2023, 5:16 PM
    shouldn't that just be a single event?
  • b

    bright-gpu-74537

    03/01/2023, 5:18 PM
    does it have multiple?
  • a

    ambitious-knife-25690

    03/01/2023, 5:19 PM
    it must due to the children stealing focus
  • a

    ambitious-knife-25690

    03/01/2023, 5:19 PM
    I'm not sure how to confirm it tho
  • b

    bright-gpu-74537

    03/01/2023, 5:20 PM
    > it must due to the children stealing focus i think thats an assumption... afaik, it should just have up / down handlers
  • b

    bright-gpu-74537

    03/01/2023, 5:21 PM
    put a trace in your mapEvent, spit out the component ids and event types of things that are asking to be mapped
  • a

    ambitious-knife-25690

    03/01/2023, 5:21 PM
    okay will do 👍
1...156115621563...1687Latest