Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup capture pointer default value not respected if no options supplied #282

Closed
oscarlorentzon opened this issue Aug 2, 2018 · 0 comments
Assignees
Milestone

Comments

@oscarlorentzon
Copy link
Member

Basic information

MapillaryJS version: 2.9.0
System/Browser: All

Steps to Reproduce Behavior

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant