Author Topic: Internet Explorer zoom  (Read 887 times)

DavidC

  • Guest
Internet Explorer zoom
« on: August 10, 2010, 05:40:48 pm »
In Internet Explorer 7 a problem occurs when zooming. This can happen when using CTRL - Mousewheel. It resizes the Flex application area itself, even though the application is scaled to 100% x 100% of the browser window.

One solution for this is to edit the index.html file,  by adding some javascript.

Within <head>, add:
Code: [Select]
<script type="text/javascript">
function catchCtrlMouseWheel() {
if (window.event.type == "mousewheel") {
if (window.event && window.event.wheelDelta) {
return window.event.ctrlKey ? false : true;
}
}
return true;
}
</script>

and in <body>, add:
Code: [Select]
<body onmousewheel="return catchCtrlMouseWheel()">
David
« Last Edit: August 18, 2010, 09:40:36 am by DavidC »