Skip to content

Commit f54336e

Browse files
committed
fix issue when releasing without moving
1 parent 55db28f commit f54336e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,13 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
733733
set(this.hoverAnimState.position, this.hoverAnim),
734734
startClock(this.hoverClock)
735735
]),
736-
call([this.activeIndex], this.onRelease)
736+
[
737+
call([this.activeIndex], this.onRelease),
738+
cond(
739+
not(this.hasMoved),
740+
call([this.activeIndex], this.resetHoverState)
741+
)
742+
]
737743
],
738744
call([this.activeIndex], this.resetHoverState)
739745
)

0 commit comments

Comments
 (0)