Prevent contextmenu on mobile events
This commit is contained in:
@ -147,9 +147,9 @@ class TrackList extends React.Component{
|
||||
|
||||
handleContextMenu(e, native_event = true){
|
||||
|
||||
// disable context menu events in mobile view
|
||||
if (this.triggerType(e) == 'mobile'){
|
||||
e.preventDefault()
|
||||
// Only enable direct context menu events in default (desktop) view
|
||||
// This prevents tap-and-hold functionality
|
||||
if (native_event && this.triggerType(e) != 'default'){
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@ class Discover extends React.Component{
|
||||
}
|
||||
|
||||
renderResults(){
|
||||
if (helpers.isLoading(this.props.load_queue,['spotify_browse/recommendations'])){
|
||||
if (helpers.isLoading(this.props.load_queue,['spotify_recommendations'])){
|
||||
return (
|
||||
<div className="body-loader">
|
||||
<div className="loader"></div>
|
||||
|
||||
Reference in New Issue
Block a user