Use dragging flag in examples

This commit is contained in:
tsauerwein
2015-01-30 10:05:38 +01:00
parent f4500c8f89
commit b390c1bdf8
3 changed files with 9 additions and 3 deletions

View File

@@ -39,7 +39,10 @@ map.on('singleclick', function(evt) {
}
});
$(map.getViewport()).on('mousemove', function(evt) {
map.on('pointermove', function(evt) {
if (evt.dragging) {
return;
}
var pixel = map.getEventPixel(evt.originalEvent);
var hit = map.forEachLayerAtPixel(pixel, function(layer) {
return true;