By default, the click handler now has a zero pixelTolerance. This means we don't call click if the click includes a drag. Set pixelTolerance to null if you want click called with a drag. r=crschmidt (closes #1335)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
function test_Handler_Click_events(t) {
|
||||
t.plan(30);
|
||||
t.plan(35);
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
var control = {
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
// list below events that should be handled (events) and those
|
||||
// that should not be handled (nonevents) by the handler
|
||||
var events = ["click", "dblclick"];
|
||||
var nonevents = ["mousedown", "mousemove", "mouseup", "resize", "focus", "blur"];
|
||||
var events = ["click", "dblclick", "mousedown"];
|
||||
var nonevents = ["mousemove", "mouseup", "resize", "focus", "blur"];
|
||||
var handler = new OpenLayers.Handler.Click(control);
|
||||
// set browser event like properties on the handler
|
||||
for(var i=0; i<events.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user