Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fixed bug showing when dragging list elements with different height #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ private void switchIfNecessary() {
View switchView = getViewForId(switchId);

final int deltaY = mHoverDrawable.getDeltaY();
if (switchView != null && Math.abs(deltaY) > mHoverDrawable.getIntrinsicHeight()) {
if (switchView != null && Math.abs(deltaY) > switchView.getHeight()) {
switchViews(switchView, switchId, mHoverDrawable.getIntrinsicHeight() * (deltaY < 0 ? -1 : 1));
}

Expand Down