Changeset 3766
- Timestamp:
- 07/16/07 15:07:01 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/PanZoom.js (modified) (1 diff)
- trunk/openlayers/tests/Control/test_PanZoom.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/PanZoom.js
r3545 r3766 118 118 OpenLayers.Event.observe(btn, "mousedown", 119 119 this.buttonDown.bindAsEventListener(btn)); 120 OpenLayers.Event.observe(btn, "mouseup",121 this.doubleClick.bindAsEventListener(btn));122 120 OpenLayers.Event.observe(btn, "dblclick", 123 121 this.doubleClick.bindAsEventListener(btn)); trunk/openlayers/tests/Control/test_PanZoom.html
r3534 r3766 63 63 t.ok( wnd.mapper.getCenter().lat > wnd.centerLL.lat, "Pan up works correctly" ); 64 64 t.ok(!flag.mousedown, "mousedown does not get to the map"); 65 t.ok( !flag.mouseup, "mouseup does notget to the map");65 t.ok(flag.mouseup, "mouseup does get to the map"); 66 66 t.ok(!flag.click, "click does not get to the map"); 67 67 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 71 71 t.ok( wnd.mapper.getCenter().lon < wnd.centerLL.lon, "Pan left works correctly" ); 72 72 t.ok(!flag.mousedown, "mousedown does not get to the map"); 73 t.ok( !flag.mouseup, "mouseup does notget to the map");73 t.ok(flag.mouseup, "mouseup does get to the map"); 74 74 t.ok(!flag.click, "click does not get to the map"); 75 75 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 79 79 t.ok( wnd.mapper.getCenter().lon == wnd.centerLL.lon, "Pan right works correctly" ); 80 80 t.ok(!flag.mousedown, "mousedown does not get to the map"); 81 t.ok( !flag.mouseup, "mouseup does notget to the map");81 t.ok(flag.mouseup, "mouseup does get to the map"); 82 82 t.ok(!flag.click, "click does not get to the map"); 83 83 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 87 87 t.ok( wnd.mapper.getCenter().lat == wnd.centerLL.lat, "Pan down works correctly" ); 88 88 t.ok(!flag.mousedown, "mousedown does not get to the map"); 89 t.ok( !flag.mouseup, "mouseup does notget to the map");89 t.ok(flag.mouseup, "mouseup does get to the map"); 90 90 t.ok(!flag.click, "click does not get to the map"); 91 91 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 95 95 t.eq( wnd.mapper.getZoom(), 6, "zoomin works correctly" ); 96 96 t.ok(!flag.mousedown, "mousedown does not get to the map"); 97 t.ok( !flag.mouseup, "mouseup does notget to the map");97 t.ok(flag.mouseup, "mouseup does get to the map"); 98 98 t.ok(!flag.click, "click does not get to the map"); 99 99 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 103 103 t.eq( wnd.mapper.getZoom(), 5, "zoomout works correctly" ); 104 104 t.ok(!flag.mousedown, "mousedown does not get to the map"); 105 t.ok( !flag.mouseup, "mouseup does notget to the map");105 t.ok(flag.mouseup, "mouseup does get to the map"); 106 106 t.ok(!flag.click, "click does not get to the map"); 107 107 t.ok(!flag.dblclick, "dblclick does not get to the map"); … … 111 111 t.eq( wnd.mapper.getZoom(), 2, "zoomworld works correctly" ); 112 112 t.ok(!flag.mousedown, "mousedown does not get to the map"); 113 t.ok( !flag.mouseup, "mouseup does notget to the map");113 t.ok(flag.mouseup, "mouseup does get to the map"); 114 114 t.ok(!flag.click, "click does not get to the map"); 115 115 t.ok(!flag.dblclick, "dblclick does not get to the map");
