Skip to content

Problem with host panel #1

@veldyasov

Description

@veldyasov

It is not easy to reproduce, but if you toch host panel when it is moving to the right (when the menu is opening) then host panel flies to the right side and then host panel can be seen only by half of width. It can be fixed by adding condition into Scrolling.run() function

...
@OverRide
public void run() {
boolean more = mScroller.computeScrollOffset();
if (more) {
int x = mScroller.getCurrX();
int diff = x - lastX;

            if (mHost.getLeft() > mMenuWidth || mHost.getLeft() < 0){
                mHandler.removeCallbacks(this);
                if (open) {
                    mState = MENU_OPENED;
                } else {
                    mState = MENU_CLOSED;
                }
                return;
            }

...
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions