New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spankbang.com - Video double tap forward doesn't work #61319
Comments
Thanks for the report, I was able to reproduce the issue. Note: The issue is not reproducible on Chrome. Tested with: Moving to Needsdiagnosis for further investigation. |
Double tap on Firefox does
not sure if it's a question of performance. defaults = {
useJquery: !win.IGNORE_JQUERY && typeof jQuery !== 'undefined',
swipeThreshold: win.SWIPE_THRESHOLD || 100,
tapThreshold: win.TAP_THRESHOLD || 150,
dbltapThreshold: win.DBL_TAP_THRESHOLD || 200,
longtapThreshold: win.LONG_TAP_THRESHOLD || 1000,
tapPrecision: win.TAP_PRECISION / 2 || 60 / 2,
justTouchEvents: win.JUST_ON_TOUCH_DEVICES
}, onTouchEnd = function (e) {
if (!isTheSameFingerId(e) || isMultipleTouches(e)) return
pointerId = undefined
if (e.type === 'mouseup' && wasTouch) {
wasTouch = false
return
}
var eventsArr = [
],
now = getTimestamp(),
deltaY = cachedY - currY,
deltaX = cachedX - currX
clearTimeout(dblTapTimer)
clearTimeout(longtapTimer)
if (deltaX <= - defaults.swipeThreshold)
eventsArr.push('swiperight')
if (deltaX >= defaults.swipeThreshold)
eventsArr.push('swipeleft')
if (deltaY <= - defaults.swipeThreshold)
eventsArr.push('swipedown')
if (deltaY >= defaults.swipeThreshold)
eventsArr.push('swipeup')
if (eventsArr.length) {
for (var i = 0; i < eventsArr.length; i++) {
var eventName = eventsArr[i]
sendEvent(e.target, eventName, e, {
distance: {
x: Math.abs(deltaX),
y: Math.abs(deltaY)
}
})
}
tapNum = 0
} else {
if (cachedX >= currX - defaults.tapPrecision && cachedX <= currX + defaults.tapPrecision && cachedY >= currY - defaults.tapPrecision && cachedY <= currY + defaults.tapPrecision) {
if (timestamp + defaults.tapThreshold - now >= 0)
{
sendEvent(e.target, tapNum >= 2 && target === e.target ? 'dbltap' : 'tap', e)
target = e.target
}
}
dblTapTimer = setTimeout(function () {
tapNum = 0
}, defaults.dbltapThreshold)
}
}, or maybe it doesn't see that this is a touch device? It never reaches this section of the code. if (cachedX >= currX - defaults.tapPrecision && cachedX <= currX + defaults.tapPrecision && cachedY >= currY - defaults.tapPrecision && cachedY <= currY + defaults.tapPrecision) {
if (timestamp + defaults.tapThreshold - now >= 0)
{
sendEvent(e.target, tapNum >= 2 && target === e.target ? 'dbltap' : 'tap', e)
target = e.target
}
} ah it never enters This is happening.
but the touchend or mouseup event doesn't happen. |
What I have not found is why touchend/mouseup is not happening, maybe something is cancelling mouseup somewhere else. @wisniewskit |
This is very old but it has similarities. |
They seem to be using a library by @GianlucaGuarini which is called https://github.com/GianlucaGuarini/Tocca.js |
I will push it to fenix to see if we have a perfomance issue here. |
Duplicate of mozilla-mobile/fenix#20133 |
URL: https://spankbang.com/3tcqu/video/pretty+girl+walking+big+sweater+puppies
Browser / Version: Firefox Mobile 84.0
Operating System: Android 8.1.0
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: video double tap forward doesn't work
Steps to Reproduce:
View the screenshot
Browser Configuration
View console log messages
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: