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

    ambitious-knife-25690

    03/04/2023, 10:54 AM
    is there any actual difference between virtual and non virtual lists?
  • a

    ambitious-knife-25690

    03/04/2023, 10:54 AM
    maybe the difference will tell me where to look
  • b

    bright-gpu-74537

    03/04/2023, 10:54 AM
    huge differences
  • a

    ambitious-knife-25690

    03/04/2023, 10:55 AM
    ahh 😅
  • b

    bright-gpu-74537

    03/04/2023, 10:56 AM
    a non virtual (normal) list will create vbox with all the items in it... so if you have 100 items, there will be 100 item renderers in the vbox and the whole vbox will clip... a virtual list only has the number of item renderers that can be shown ( +1 ) and it recycles them and scrolls the data
  • b

    bright-gpu-74537

    03/04/2023, 10:56 AM
    thats why in a virtual listview you can have millions of items - with little to no perf impact
  • b

    bright-gpu-74537

    03/04/2023, 10:56 AM
    but you shouldnt need to do anything specific
  • a

    ambitious-knife-25690

    03/04/2023, 10:57 AM
    okay, so logically speaking a virtual will be added to the list later and a non virtual would be 'queued up'
  • a

    ambitious-knife-25690

    03/04/2023, 10:57 AM
    maybe it's the timing of when things are added that affects the depth
  • a

    ambitious-knife-25690

    03/04/2023, 10:58 AM
    but the queued up items in the virtual list work 🤔
  • b

    bright-gpu-74537

    03/04/2023, 10:59 AM
    not really, its just how the item renderers are used essentially - from your perspective there shouldnt be any difference, but again, if your backend is fundamentally misbehaving who knows what effects it has...
  • b

    bright-gpu-74537

    03/04/2023, 10:59 AM
    i think (and its a guess), virtual uses more addAt, removeAt and non-virtual uses more add / remove... but i could be wrong about that
  • a

    ambitious-knife-25690

    03/04/2023, 11:00 AM
    Ooo that gives me something to test
  • b

    bright-gpu-74537

    03/04/2023, 11:04 AM
    http://haxeui.org/builder/?87b16fd0
  • o

    orange-van-60470

    03/04/2023, 11:04 AM
    Not following closely, but if you animate on mouse down then you need to unregister events while animating. Otherwise it could re-report the mouse down. Probably best to un listen to all mouse events while animating.
  • o

    orange-van-60470

    03/04/2023, 11:05 AM
    by moving under the mouse it maybe possible for an event to be retriggered
  • o

    orange-van-60470

    03/04/2023, 11:06 AM
    depending on the internals of the backend?
  • o

    orange-van-60470

    03/04/2023, 11:07 AM
    For a toggle you certainly don't want the animating object to be active to mouse during transition?
  • a

    ambitious-knife-25690

    03/04/2023, 11:08 AM
    hehehehe, this shows something very interesting happening 😄
  • o

    orange-van-60470

    03/04/2023, 11:08 AM
    if under the mouse
  • b

    bright-gpu-74537

    03/04/2023, 11:08 AM
    its got nothing to do with the animation, we've established that, and more likely something fundamental wrong in the backend
  • a

    ambitious-knife-25690

    03/04/2023, 11:09 AM
    top 1 works fine
  • a

    ambitious-knife-25690

    03/04/2023, 11:09 AM
    bottom one fails
  • b

    bright-gpu-74537

    03/04/2023, 11:09 AM
    figures... as i mentioned, try to fix the base issues then things should "just work"
  • o

    orange-van-60470

    03/04/2023, 11:09 AM
    this is the problem of the animation target not finishing before next target
  • o

    orange-van-60470

    03/04/2023, 11:10 AM
    you need to consider disable while moving or use virtual values
  • b

    bright-gpu-74537

    03/04/2023, 11:10 AM
    its not... and i dont know why you are asserting that with such authority when you have no idea what you are talking about... 🤦‍♂️
  • b

    bright-gpu-74537

    03/04/2023, 11:11 AM
    the issue, as stated, is within the backend and it not doing something correctly... nothing to do with animation
  • a

    ambitious-knife-25690

    03/04/2023, 11:11 AM
    i guess this shows my addcomponent`at` and removecomponent`at` implementation not workincg
  • a

    ambitious-knife-25690

    03/04/2023, 11:11 AM
    niceee
1...156815691570...1687Latest