Conditional default prevention instead of touch-action: none

This commit is contained in:
Andreas Hocevar
2019-11-25 00:27:51 +01:00
parent 0ed57b8b7c
commit 88b8b2f7cb
10 changed files with 103 additions and 49 deletions

View File

@@ -136,7 +136,6 @@ class ZoomSlider extends Control {
thumbElement.setAttribute('type', 'button');
thumbElement.className = className + '-thumb ' + CLASS_UNSELECTABLE;
const containerElement = this.element;
containerElement.setAttribute('touch-action', 'none');
containerElement.className = className + ' ' + CLASS_UNSELECTABLE + ' ' + CLASS_CONTROL;
containerElement.appendChild(thumbElement);