Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CollectionView touchStart function not properly setting touchSele…

…ctedView
  • Loading branch information...
commit 4b076a6437e966dec9cccb42d1a7d18515efc00f 1 parent c6f7d28
Colin Campbell authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 frameworks/desktop/views/collection.js
View
5 frameworks/desktop/views/collection.js
@@ -2385,14 +2385,13 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
// become first responder if possible.
this.becomeFirstResponder() ;
+ this._touchSelectedView = itemView;
+
if (!this.get('useToggleSelection')) {
// We're faking the selection visually here
// Only track this if we added a selection so we can remove it later
if (itemView && !itemView.get('isSelected')) {
itemView.set('isSelected', YES);
- this._touchSelectedView = itemView;
- } else {
- this._touchSelectedView = null;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.