From 5d8921b8262a1d17b680eed6e9cb2d5b9d2e0013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 25 Oct 2018 02:34:47 +0200 Subject: [PATCH] js/ui/keys.js: cleanup. --- js/ui/keys.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/js/ui/keys.js b/js/ui/keys.js index 3cd6168..77922c7 100644 --- a/js/ui/keys.js +++ b/js/ui/keys.js @@ -204,33 +204,6 @@ var keys = (function(){ } } - // function cancelZoom() { - // var d = document, - // viewport, - // content, - // maxScale = ',maximum-scale=', - // maxScaleRegex = /,*maximum\-scale\=\d*\.*\d*/; - - // // this should be a focusable DOM Element - // if (!this.addEventListener || !d.querySelector) { - // return; - // } - - // viewport = d.querySelector('meta[name="viewport"]'); - // content = viewport.content; - - // function changeViewport(event) { - // // http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/ - // viewport.content = content + (event.type == 'blur' ? (content.match(maxScaleRegex, '') ? '' : maxScale + 10) : maxScale + 1); - // } - - // // We could use DOMFocusIn here, but it's deprecated. - // this.addEventListener('focus', changeViewport, true); - // this.addEventListener('blur', changeViewport, false); - // } - - // cancelZoom.bind(cursor_input)(); - return keys })()