mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
js/ui/keys.js: cleanup.
This commit is contained in:
parent
fcea7308f2
commit
6a347c4786
@ -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
|
return keys
|
||||||
})()
|
})()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user