Skip to content

Map 'dblclick' event not firing on Chrome #4127

Closed
@delner

Description

@delner

Using v1.0.0-beta.2 from the CDN, I'm having trouble getting dblclick events from the map to fire in Chrome.

Setup a map as follows:

this.activeLayer = L.tileLayer(tileHost + '/tiles/' + mapName + '/{z}/{x}/{y}.png');
this.map = L.map('map', {
  maxZoom: 7,
  doubleClickZoom: false,
  bounceAtZoomLimits: false,
  layers: [this.activeLayer]
});

Then binding 3 events to test with:

this.map.on('click', function (eventData) { console.log('map click!'); });
this.map.on('dblclick', function (eventData) { console.log('map double click!'); });
$("body").on('dblclick', function (eventData) { console.log('body double click!'); });

Double clicking on the map in:

  • Firefox 39.0 yields map double click, body double click! and map click!x2.
  • Chrome 47.0.2526.106 64-bit yields only body double click! and map click!x2.

Switching back to 0.7.7 circumvents the issue.

1.0.0beta2 seemed to work ok in Chrome before, not sure why it isn't working now. Is anyone else seeing similar behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions