Skip to content

Commit

Permalink
fix: hide dragbox on touch up (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruskal authored and enell committed Feb 9, 2023
1 parent a28060c commit 13b276f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private Rect getBounds() {

public void handleSingleTap() {
DataCell cell = content.getCell();
if (cell.isDim) {
if (cell != null && cell.isDim) {
Rect bounds = getBounds();
if(!content.isSelected()) {
tableView.showDragBox(bounds, cell.rawColIdx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public boolean onTouch(View view, MotionEvent event) {
}
case MotionEvent.ACTION_UP: {
pressed = false;
hide();
tableView.scrollView.setDisableIntercept(false);
return true;
}
Expand Down

0 comments on commit 13b276f

Please sign in to comment.