Use dragging flag in examples
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user