return;
}
// Triggers swipe hintText if it's a purely vertical swipe.
- if (!(direction & (SwipeDirection.LEFT | SwipeDirection.RIGHT))) {
+ if (this.activeKeyset.flick &&
+ !(direction & (SwipeDirection.LEFT | SwipeDirection.RIGHT))) {
// Check if event is relevant to us.
if ((!detail.endSwipe) || (detail.isComplex))
return;
* @param {Sound} sound The id of the audio tag.
*/
playSound: function(sound) {
- if (!sound || sound == Sound.NONE)
+ if (!SOUND_ENABLED || !sound || sound == Sound.NONE)
return;
var pool = this.sounds[sound];
if (!pool) {