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

    ambitious-knife-25690

    01/26/2023, 1:38 PM
    what triggers it to be called?
  • b

    bright-gpu-74537

    01/26/2023, 1:38 PM
    well, haxeui doesnt call it in a loop either... it gets called when something scrolls
  • a

    ambitious-knife-25690

    01/26/2023, 1:38 PM
    so it thinks my scrollbar is constantly scrolling? 🤔
  • b

    bright-gpu-74537

    01/26/2023, 1:39 PM
    possibly / probably... all i can tell you is its not "core" behaviour... i cant tell you why your backend is doing what its doing
  • b

    bright-gpu-74537

    01/26/2023, 1:40 PM
    are you sure you have screen events working properly? Maybe the scrollview thinks you are constantly dragging or something
  • a

    ambitious-knife-25690

    01/26/2023, 1:41 PM
    i thought about that, but the scrollbar would follow my mouse even when i let go of down no?
  • b

    bright-gpu-74537

    01/26/2023, 1:41 PM
    well, i believed you 🙂 Im simply saying its not behaviour of core, and other backends dont do it, so... ... it must be your backend 🙂
  • b

    bright-gpu-74537

    01/26/2023, 1:42 PM
    put a trace here and see if it also traces constantly: https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/containers/ScrollView.hx#L1347
  • b

    billions-dog-17481

    01/26/2023, 1:43 PM
    I got @-ted but it was all a mistake
  • b

    billions-dog-17481

    01/26/2023, 1:43 PM
    PSA: I am not in fact @ambitious-knife-25690
  • b

    bright-gpu-74537

    01/26/2023, 1:43 PM
    if it does, put a counter in there and throw an exception at say... 1000 and see what the stack is...
  • b

    bright-gpu-74537

    01/26/2023, 1:43 PM
    ... !!Billy... so Billy 😄
  • a

    ambitious-knife-25690

    01/26/2023, 1:44 PM
    the truth is out!
  • b

    billions-dog-17481

    01/26/2023, 1:44 PM
    my surname is BĂ­lĂ˝ which often gets mistaken for Billy indeed
  • b

    billions-dog-17481

    01/26/2023, 1:44 PM
    what a coincidence
  • b

    bright-gpu-74537

    01/26/2023, 1:44 PM
    oh man, the plot thickens.... 😮
  • b

    bright-gpu-74537

    01/26/2023, 1:47 PM
    what happens if you put a button / component on your app (not in a scrollview) and set "draggable = true"... this should let you know if your event mapping is off as it uses all the same calls as scrollview dragging (im fairly sure)
  • a

    ambitious-knife-25690

    01/26/2023, 1:48 PM
    the stack
  • b

    bright-gpu-74537

    01/26/2023, 1:49 PM
    ok, maybe not that helpful, could just mean that its constantly thinking its scrolling...
  • b

    bright-gpu-74537

    01/26/2023, 1:49 PM
    http://haxeui.org/builder/?d081f241
  • b

    bright-gpu-74537

    01/26/2023, 1:49 PM
    does this test app function as you would expect?
  • b

    bright-gpu-74537

    01/26/2023, 1:49 PM
    does your app (with scrollviews) start off tracing constantly, or only after you have interacted with it?
  • b

    bright-gpu-74537

    01/26/2023, 1:50 PM
    also, your calllater might be wrong... that could also be where your leak is coming from... what does it look like?
  • b

    bright-gpu-74537

    01/26/2023, 1:50 PM
    seems fine
  • a

    ambitious-knife-25690

    01/26/2023, 1:50 PM
    button drags fine which is nice to see 😄
  • a

    ambitious-knife-25690

    01/26/2023, 1:51 PM
    Copy code
    hx
    import ceramic.App;
    class CallLaterImpl {
        public function new(fn:Void->Void) {
            App.app.onPostUpdate(null, (_) -> {
                fn();
            });
        }
    }
  • b

    bright-gpu-74537

    01/26/2023, 1:51 PM
    is that going to add a listener each time?
  • a

    ambitious-knife-25690

    01/26/2023, 1:51 PM
    oh, shit i think it will 😄
  • b

    bright-gpu-74537

    01/26/2023, 1:52 PM
    ie, you want that to fire once, and then never again
  • a

    ambitious-knife-25690

    01/26/2023, 1:52 PM
    oncePostUpdate* 😄
1...141714181419...1687Latest