From 5f3e05bb5ef761aafd687ff8c0eeb98b5605ff23 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sun, 27 Jan 2008 14:10:00 +0000 Subject: [PATCH] Set the fallThrough property to 'true' by default. This seems to have no adverse affect on the examples, is documented in the 2.6 release notes, and will allow for easier display of built-in browser tooltips for controls. r=elemoine (Closes #1303) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 4 ++-- tests/Handler/test_Drag.html | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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"); } }