Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Just fixed a simple out of range error on the GestureTable app #3

Merged
merged 1 commit into from

2 participants

@bhauman

If you drag the long hold item above or below the other cells it causes an error

@lrz lrz merged commit 6108756 into HipByte:master
@lrz
Owner
lrz commented

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  GestureTable/app/gesture_recognizer.rb
View
2  GestureTable/app/gesture_recognizer.rb
@@ -46,7 +46,7 @@ def scrollTable
def updateAddingIndexPathForCurrentLocation
indexPath = indexPathFromRecognizer(@longPressRecognizer)
- if indexPath != @addingIndexPath
+ if indexPath && indexPath != @addingIndexPath
@tableView.beginUpdates
@tableView.deleteRowsAtIndexPaths([@addingIndexPath], withRowAnimation: UITableViewRowAnimationNone)
@tableView.insertRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimationNone)
Something went wrong with that request. Please try again.