deanmcpherson / react-native-sortable-listview

Drag drop capable wrapper of ListView for React Native
MIT License
917 stars 235 forks source link

more accurate overlapping check #95

Closed nihgwu closed 7 years ago

nihgwu commented 7 years ago

this PR does two things:

  1. add direction check to determine what's the SLOT height should be, right now if we scroll down it's right, but we have to scroll up 1.5x of the row height to active the row above it
  2. use the center of the active row to check overlapping instead of the touch position