Opera version < 9.20 invert the wheelDelta value but version >= 9.20 don't. r=crschmidt (Closes #1193)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2008-02-06 15:34:16 +00:00
parent 672d3c4eed
commit 911a2772a4
3 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@
handler.setMap(map);
handler.activate();
var delta = 120;
if (window.opera) delta = -delta;
if (window.opera && window.opera.version() < 9.2) delta = -delta;
handler.onWheelEvent({'target':map.div, wheelDelta: delta});
t.ok(pass, "evt.xy was set even without a mouse move");
}