Popup capture pointer default value not respected if no options supplied
oscarlorentzon opened this issue · comments
Oscar Lorentzon commented
Basic information
MapillaryJS version: 2.9.0
System/Browser: All
Steps to Reproduce Behavior
- Create a default popup and add it to the component:
var popupComponent = mly.getComponent('popup');
var span = document.createElement('span');
span.innerHTML = 'my popup content';
var popup = new Mapillary.PopupComponent.Popup();
popup.setDOMContent(span);
popup.setBasicPoint([0.546, 0.523]);
popupComponent.add([popup]);
Expected behavior
The popup captures the pointer according to the default value specified in the docs at https://mapillary.github.io/mapillary-js/interfaces/ipopupoptions.html#capturepointer.
Actual behavior
The popup does not capture the pointer.