We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using regions: Regions "regions-double-clicked" event does not trigger on mobile
regions.on('region-double-clicked', function(region, e) { e.stopPropagation() axios.post('/api/annotations/' + region.id + '/delete'); region.remove(); })
Event should be firing on double tap on region
Event not firing on double tap on region
The text was updated successfully, but these errors were encountered:
This event is using the native dblclick DOM event which sadly isn't supported on touch devices.
dblclick
We can detect double taps manually like this:
let lastTap = 0 element.addEventListener('touchend', (e) => { const tapGap = Date.now() - lastTap if (tapGap < 300 && tapGap > 0) { // Detect double-tap (within 300ms) this.emit('dblclick', e) } lastTap = currentTime })
Pull requests are welcome!
Sorry, something went wrong.
No branches or pull requests
Bug description
When using regions:
Regions "regions-double-clicked" event does not trigger on mobile
Environment
Minimal code snippet
Expected result
Event should be firing on double tap on region
Obtained result
Event not firing on double tap on region
The text was updated successfully, but these errors were encountered: