ScrollHandler: Handle the scroll of scroll views

:joy: :joy: :joy: realy ?
I think I’m lost, sorry man @vknow360

I wil try your extension :nerd_face: @vknow360

vknow360, do you know why there’s a little delay for Scroll To and Scroll By? I mean it takes some time from firing scroll event to real effect. As your extension is open source is it possible to change the time here?

@SimpleFunction(description="Scrolls to given position by pixels.pX and pY are pixel value of scroll position.If hScrollView value is true then method will be executed for hsa.")
    public void ScrollBy(final int pX,final int pY,boolean hScrollView){
        if (hScrollView && hscrollView != null){
            hscrollView.postDelayed(new Runnable() {
                @Override
                public void run() {
                    hscrollView.scrollBy(p2d(pX),p2d(pY));
                }
            }, 300);
        }else if(!hScrollView && scrollView != null){
            scrollView.postDelayed(new Runnable() {
                @Override
                public void run() {
                    scrollView.scrollBy(p2d(pX),p2d(pY));
                }
            }, 300);
        }
    }

As i can see there’s 0,3 sec delay.

Yes, you can.

Edit: reduced to 0.1 sec
com.sunny.ScrollHandler.aix (21.1 KB)

Touch Down And Touch Up Event Is Not Working

Capture125

You haven’t enabled those events because you didn’t enabled scrolling with ToggleScrolling method.

1 Like

It also not working

Capture125

This is my aia file can you please change it or give me some images

TT.aia (47.8 KB)

Do you think Vertical Scroll Arrangement is a kind of Horizontal Scroll Arrangement?

so can you please explain how i can use this block and make Touch Down And Touch Up Event workable

Sure.
image

1 Like

hey i am using these blocks, earlier before the latest version of kodular launched it was working fine but now its not working.

Here are my blocks -
blocks (1)

You answered the question yourself. :slightly_smiling_face:

2 Likes

means in latest kodular version your extension won’t work ?

So when you will update your extension so that it will work on Kodular latest update @vknow360 ?

Try it in AI2 and let me know what is the error.

1 Like

But i am using Kodular and i think there is no option to import project there from kodular

Yeah, but you can create same logic there too.

1 Like

But creating app with 2000 blocks is difficult just to use one extension. No worries I will wait, when you update your extension to use in kodular. :blush::pray:t2:

Maybe you can provide a test apk and an example video.

1 Like

But i remove your extension and updated on play store and will wait for your update now buddy thanks for your concern :slight_smile: