Coder Social home page Coder Social logo

Comments (6)

miguelhincapie avatar miguelhincapie commented on May 12, 2024

Hi @gmeral, that question can be answered by @akaN44, he improved that part of the project.
Like I said in others threads before, I will be working hard in this project asap, after finishing some functional requirements of an app.

from custombottomsheetbehavior.

gmeral avatar gmeral commented on May 12, 2024

Okay thank you, let's hope he is going to be passing by sometime soon then :)

from custombottomsheetbehavior.

akaN44 avatar akaN44 commented on May 12, 2024

@gmeral Take a look at this commit b66ef17

from custombottomsheetbehavior.

gmeral avatar gmeral commented on May 12, 2024

Oh i see, it's very clear now, then you added an if to only have this behaviour in STATE_ANCHOR_POINT.
Thanks a lot, i integrated these changes and it works like a charm.

from custombottomsheetbehavior.

ChristopheVersieux avatar ChristopheVersieux commented on May 12, 2024

I am also curious, as the ViewPager disable the horizontal scroll for the Map behind, which looks like a dirty hack.
As soon as we replace the ViewPager with an ImageView, the map can now move...
Commit referenced by @akaN44 is now overwritten ...

from custombottomsheetbehavior.

gmeral avatar gmeral commented on May 12, 2024

In BottomSheetBehaviorGoogleMapsLike.java :
In the onInterceptTouchEvent method you have to replace this piece of code :

View scroll = mNestedScrollingChildRef.get();
if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
    mActivePointerId = event.getPointerId(event.getActionIndex());
    mTouchingScrollingChild = true;
}

by

if(mState == STATE_ANCHOR_POINT){
            mActivePointerId = event.getPointerId(event.getActionIndex());
            mTouchingScrollingChild = true;
        }else {
            View scroll = mNestedScrollingChildRef.get();
            if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
                mActivePointerId = event.getPointerId(event.getActionIndex());
                mTouchingScrollingChild = true;
            }
        }

from custombottomsheetbehavior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.