[Mapbender-commits] r3191 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 6 10:27:22 EST 2008
Author: christoph
Date: 2008-11-06 10:27:22 -0500 (Thu, 06 Nov 2008)
New Revision: 3191
Modified:
trunk/mapbender/http/php/mod_map1.php
Log:
http://trac.osgeo.org/mapbender/ticket/319
Modified: trunk/mapbender/http/php/mod_map1.php
===================================================================
--- trunk/mapbender/http/php/mod_map1.php 2008-11-06 15:19:35 UTC (rev 3190)
+++ trunk/mapbender/http/php/mod_map1.php 2008-11-06 15:27:22 UTC (rev 3191)
@@ -68,21 +68,24 @@
parent.eventInitMap.register(function init_mod_map1(){
parent.mb_registerMapObj('mapframe1', 'maps', null,mod_map1_width, mod_map1_height);
- parent.$(document, window.frames['mapframe1']).mousewheel(function (event, delta) {
- if (sum_delta == 0) {
- mapTimeout = setTimeout(function () {
- lastScrollPositionX=event.pageX;
- lastScrollPositionY=event.pageY;
- mousewheelZoom();
- },
- 100);
- }
- sum_delta = sum_delta + (delta);
- var currentTime = new Date();
- lastTimestamp = currentTime.getTime();
+ if (!parent.$.browser.msie) {
- return false;
- });
+ parent.$(document, window.frames['mapframe1']).mousewheel(function (event, delta) {
+ if (sum_delta == 0) {
+ mapTimeout = setTimeout(function () {
+ lastScrollPositionX=event.pageX;
+ lastScrollPositionY=event.pageY;
+ mousewheelZoom();
+ },
+ 100);
+ }
+ sum_delta = sum_delta + (delta);
+ var currentTime = new Date();
+ lastTimestamp = currentTime.getTime();
+
+ return false;
+ });
+ }
});
}
@@ -95,10 +98,10 @@
var pos = parent.makeClickPos2RealWorldPos("mapframe1", lastScrollPositionX, lastScrollPositionY);
if (sum_delta > 0) {
- parent.zoom("mapframe1", true, Math.pow(parent.mapbender.zoomMousewheel, sum_delta), pos[0],pos[1]);
+ parent.zoom("mapframe1", true, Math.pow(parent.Mapbender.zoomMousewheel, sum_delta), pos[0],pos[1]);
}
else {
- parent.zoom("mapframe1", false, Math.pow(parent.mapbender.zoomMousewheel, -sum_delta), pos[0], pos[1]);
+ parent.zoom("mapframe1", false, Math.pow(parent.Mapbender.zoomMousewheel, -sum_delta), pos[0], pos[1]);
}
var newPosX = parent.parent.mb_mapObj[ind].width - lastScrollPositionX;
More information about the Mapbender_commits
mailing list