Correct indentation

This commit is contained in:
Tim Schaub
2016-02-15 16:03:36 -07:00
parent 55d56d65bc
commit 03761642ed
3 changed files with 20 additions and 25 deletions

View File

@@ -66,15 +66,14 @@ describe('ol.interaction.Modify', function() {
// calculated in case body has top < 0 (test runner with small window)
var position = goog.style.getClientPosition(viewport);
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
var event = new ol.MapBrowserPointerEvent(type, map,
new ol.pointer.PointerEvent(type,
{
type: type,
button: button,
clientX: position.x + x + width / 2,
clientY: position.y + y + height / 2,
shiftKey: shiftKey
}));
var pointerEvent = new ol.pointer.PointerEvent(type, {
type: type,
button: button,
clientX: position.x + x + width / 2,
clientY: position.y + y + height / 2,
shiftKey: shiftKey
});
var event = new ol.MapBrowserPointerEvent(type, map, pointerEvent);
event.pointerEvent.pointerId = 1;
map.handleMapBrowserEvent(event);
}