diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index fa7d5a5a8c..1f1b949676 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -284,9 +284,9 @@ OpenLayers.Map = OpenLayers.Class({ * APIProperty: fallThrough * {Boolean} Should OpenLayers allow events on the map to fall through to * other elements on the page, or should it swallow them? (#457) - * Default is to swallow them. + * Default is to fall through. */ - fallThrough: false, + fallThrough: true, /** * Constructor: OpenLayers.Map diff --git a/tests/Handler/test_Drag.html b/tests/Handler/test_Drag.html index c01716fde7..4f93679cd3 100644 --- a/tests/Handler/test_Drag.html +++ b/tests/Handler/test_Drag.html @@ -87,7 +87,7 @@ } function test_Handler_Drag_callbacks(t) { - t.plan(34); + t.plan(33); var map = new OpenLayers.Map('map', {controls: []}); @@ -168,8 +168,7 @@ evt.xy.y == testEvents.down.xy.y, "mousedown default action is disabled"); } else { - t.ok(evt.xy.x == testEvents.down.xy.x && - evt.xy.y == testEvents.down.xy.y, + t.fail( "mousedown is prevented from falling to other elements"); } }