random/repeat works again, better swipes

some ugly hacks, but it works now
This commit is contained in:
woutervanwijk 2013-11-11 13:54:02 +01:00
parent 63e0dda387
commit bc4cd06faa
2 changed files with 11 additions and 6 deletions

View File

@ -351,13 +351,13 @@
<!--&nbsp; <a href="#" onclick="doShuffle(); return false" title="Shuffle"><img src="images/icons/fork_21x24.png"-->
<!--id="shufflebt" alt=""/></a>-->
<p id="buttons">
<a href="#" onclick="doRandom(); return false"><img src="images/icons/loop_alt2_16x14.png" alt="" id="randombt" /></a>
&nbsp; <a href="#" onclick="doRepeat(); return false"><img src="images/icons/reload_12x14.png" id="repeatbt" alt="" /></a>
&nbsp; <a href="#" onclick="doShuffle(); return false" title="Shuffle"><img src="images/icons/fork_21x24.png" id="shufflebt" alt="" /></a>
</p>
<p id="buttons"' style="float:right; margin-top: 20px; margin-right: 5px;">
<a href="#" onclick="doRandom(); return false"><img src="images/icons/loop_alt2_16x14.png" alt="" id="randombt" /></a>
&nbsp; <a href="#" onclick="doRepeat(); return false"><img src="images/icons/reload_12x14.png" id="repeatbt" alt="" /></a>
&nbsp; <a href="#" onclick="doShuffle(); return false" title="Shuffle"><img src="images/icons/fork_21x24.png" id="shufflebt" alt="" /></a>
</p>
<div class="nowPlayingControls">
<div class="nowPlayingControls" style="float:left; margin-left: 5px;">
<a href="#" onclick="doPrevious(); return false"><span id="btprev"><i class="fa fa-fast-backward"></i></span></a>
<a href="#" onclick="doPlay(); return false"><span id="btplayNowPlaying"><i class="fa fa-play"></i></span></a>
<a href="#" onclick="doNext(); return false"><span id="btnext"><i class="fa fa-fast-forward"></i></span></a>

View File

@ -567,3 +567,8 @@ function locationHashChanged() {
document.title = PROGRAM_NAME;
return false;
}
$(document).bind("mobileinit", function(){
$.event.special.swipe.horizontalDistanceThreshold = 100; // (default: 30px) Swipe horizontal displacement must be more than this.
$.event.special.swipe.verticalDistanceThreshold = 100; // (default: 75px) Swipe vertical displacement must be less than this.
});