Hello, I am in the process of upgrading a system from OpenLayers 5.x to 6.x. The only issue I've run into so far has to do with a hack I implemented some time ago to enable the DragBox interaction on touchscreen devices. My hack relied on the ol.interaction.DragBox.handleEvent function which is no longer around. The code is below. Any suggestions of how to enable DragBox interaction on touchscreen devices in the 6.x series?
var _handleEvent = ol.interaction.DragBox.handleEvent; if (_handleEvent){ dragBox.handleEvent = function(e) { if (e.pointerEvent && e.pointerEvent.pointerType === 'touch') { e.pointerEvent.pointerType = 'mouse'; } return _handleEvent.apply(this, arguments); }; } else{ //??? } Thanks,Peter
_______________________________________________ Users mailing list us...@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/openlayers-users