OpenLayers OpenLayers

Changeset 5907

Show
Ignore:
Timestamp:
01/27/08 09:10:00 (1 year ago)
Author:
crschmidt
Message:

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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r5853 r5907  
    285285     * {Boolean} Should OpenLayers allow events on the map to fall through to 
    286286     *           other elements on the page, or should it swallow them? (#457) 
    287      *           Default is to swallow them
    288      */ 
    289     fallThrough: false, 
     287     *           Default is to fall through
     288     */ 
     289    fallThrough: true, 
    290290 
    291291    /** 
  • trunk/openlayers/tests/Handler/test_Drag.html

    r5097 r5907  
    8888 
    8989    function test_Handler_Drag_callbacks(t) { 
    90         t.plan(34); 
     90        t.plan(33); 
    9191         
    9292        var map = new OpenLayers.Map('map', {controls: []}); 
     
    169169                     "mousedown default action is disabled"); 
    170170            } else { 
    171                 t.ok(evt.xy.x == testEvents.down.xy.x && 
    172                      evt.xy.y == testEvents.down.xy.y, 
     171                t.fail( 
    173172                     "mousedown is prevented from falling to other elements"); 
    174173            }