Plugins: Fix browse button on iOS

This commit is contained in:
KatieFrogs
2022-03-16 19:04:51 +03:00
parent a7aee747a8
commit b9d990a643
3 changed files with 26 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ var plugins
var noResizeRoot = false
pageEvents.add(root, ["touchstart", "touchmove", "touchend"], event => {
if(event.cancelable && cancelTouch && event.target.tagName !== "SELECT"){
if(event.cancelable && cancelTouch && event.target.tagName !== "SELECT" && (event.target.tagName !== "INPUT" || event.target.type !== "file")){
event.preventDefault()
}
})