Allow dismissing note previews on touch devices by tapping on them

This commit is contained in:
Maxime Vaillancourt 2021-10-12 22:04:58 -04:00
parent 34b0d6fc40
commit 2009a591d6

View File

@ -104,6 +104,14 @@
hideTooltip();
});
linkElement.addEventListener('touchend', function(_event) {
hideTooltip();
});
tooltipWrapper.addEventListener('touchend', function(_event) {
hideTooltip();
});
linkElement.addEventListener('mouseenter', function(event) {
clearTimeout(opacityTimeout);
clearTimeout(contentTimeout);