Sorting part 2 - should be at storage level perhaps; Thumbnail not updating fixed

This commit is contained in:
James Barnsley
2016-12-10 23:30:03 +13:00
parent 26b069faa7
commit c1ea65666c
7 changed files with 117 additions and 53 deletions

View File

@ -20,6 +20,13 @@ export default class Track extends React.Component{
}
}
handleTouchEnd(e){
var target = $(e.target);
if( !target.is('a') && target.closest('a').length <= 0 ){
this.props.handleTouchEnd(e);
}
}
handleContextMenu(e){
e.preventDefault();
this.props.handleContextMenu(e);
@ -46,7 +53,7 @@ export default class Track extends React.Component{
<div
className={className}
onTouchStart={ e => this.props.handleTouchStart(e) }
onTouchEnd={ e => this.props.handleTouchEnd(e) }
onTouchEnd={ e => this.handleTouchEnd(e) }
onMouseDown={ e => this.handleMouseDown(e) }
onMouseUp={ e => this.props.handleMouseUp(e) }
onDoubleClick={ e => this.props.handleDoubleClick(e) }