[Mapbender-commits] r3198 - branches/noframes/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 7 05:10:26 EST 2008
Author: christoph
Date: 2008-11-07 05:10:26 -0500 (Fri, 07 Nov 2008)
New Revision: 3198
Modified:
branches/noframes/http/php/mod_map1.php
Log:
disable mousewheel zoom for IE
Modified: branches/noframes/http/php/mod_map1.php
===================================================================
--- branches/noframes/http/php/mod_map1.php 2008-11-07 10:04:00 UTC (rev 3197)
+++ branches/noframes/http/php/mod_map1.php 2008-11-07 10:10:26 UTC (rev 3198)
@@ -68,21 +68,24 @@
parent.eventInitMap.register(function init_mod_map1(){
parent.mb_registerMapObj('mapframe1', 'mapframe1', 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