0
在Internet Explorer 10 Metro风格中,我想捕获用户使用捏手势缩小到全视图时发生的事件。有没有办法在IE10 Metro中捕捉缩小的最大事件?
我可以使用JavaScript中运行的页面或运行在IE地址空间的C++代码。
在Internet Explorer 10 Metro风格中,我想捕获用户使用捏手势缩小到全视图时发生的事件。有没有办法在IE10 Metro中捕捉缩小的最大事件?
我可以使用JavaScript中运行的页面或运行在IE地址空间的C++代码。
这是一个黑客,但它的工作,额外的最低变焦周围正常大小的0.85,所以我们检查,如果用户缩小超过0.87:
window.addEventListener ('resize', function() {
if (document.documentElement.clientHeight/window.innerHeight <= 0.87){
// this will run more than once while the user
// is zooming out close to the maximum level
}
}, false);
它不会工作变焦时被禁用(手机网站)。