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

Fire mouseout events #2777

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Fire mouseout events #2777

merged 1 commit into from
Jun 27, 2016

Conversation

alcoheca
Copy link
Contributor

Allows developers to hide popups / clear highlighted areas which can clutter the screen after the user moves the mouse pointer out of context.

Helps hide popups / highlighted areas which can clutter the screen, on a
mouse out
@lucaswoj
Copy link
Contributor

Great! Thanks @alcoheca!

@lucaswoj lucaswoj merged commit 1e1fac9 into mapbox:master Jun 27, 2016
@@ -37,6 +38,11 @@ module.exports = function bindHandlers(map, options) {
el.addEventListener('dblclick', onDblClick, false);
el.addEventListener('contextmenu', onContextMenu, false);

function onMouseOut(e) {
map.stop();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this line. By default, animated zooms/pans should not stop if the cursor leaves the canvas.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry - I'll be honest i wasn't 100% about this line..

should I do anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #2789

@alcoheca alcoheca deleted the mouseout-event branch June 27, 2016 19:51
alcoheca added a commit to alcoheca/mapbox-gl-js that referenced this pull request Jun 27, 2016
lucaswoj pushed a commit that referenced this pull request Jun 27, 2016
davidtheclark pushed a commit that referenced this pull request Jul 1, 2016
Helps hide popups / highlighted areas which can clutter the screen, on a
mouse out
davidtheclark pushed a commit that referenced this pull request Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants