Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Horizontal Drag not possible #14

Closed
FireDevil opened this issue Jun 17, 2014 · 3 comments
Closed

Horizontal Drag not possible #14

FireDevil opened this issue Jun 17, 2014 · 3 comments

Comments

@FireDevil
Copy link

Dragging an element in a direct horizontal line with another is not possible.

The element starts dragging but in the moment the horizontal drag starts it jumps back into position.

Dragging is possible in every direction but a direct horizontal line

@askerov
Copy link
Owner

askerov commented Jun 21, 2014

Can't reproduce this issue.

@sweggersen
Copy link

It's probably your behind view that is "stealing" the touch event. Are you using a HorizontalScrollView or a ViewPager?

What I did to fix this issue was requestDisallowInterceptTouchEvent() on the parent view like this:

mGridView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
    @Override
    public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
        mViewPager.requestDisallowInterceptTouchEvent(true);
        return false;
    }
});

@askerov
Copy link
Owner

askerov commented Jul 6, 2014

@samyboy89 Thanks! Added code to disallow intercept touch event in edit mode.

@askerov askerov closed this as completed Jul 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants