I'm using only Press on an Element. I changed the threshold to 1000 to be able to scroll while pressing. But the pressup event doesnt fire if I scrolled. Is there a way to define a threshold for the pressup too?
Here's my code:
var myElement = document.getElementById('testuso');
var mc = new Hammer.Manager(myElement);
mc.add(new Hammer.Press({
event: 'press',
pointer: 1,
threshold: 1000,
time: 1,
}));
mc.on('press', function(event) {
$('.skills').addClass( "show" );
});
mc.on('pressup', function(event) {
$('.skills').removeClass( "show" );
});