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

Performance: use event delegation #319

Merged
merged 20 commits into from
Oct 24, 2017
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -1927,8 +1927,6 @@

/* Handle tooltip position update */
if (elem.tooltip !== undefined) {
console.log(elem);

var mouseX = event.pageX;
var mouseY = event.pageY;

Expand All @@ -1954,7 +1952,7 @@
if (elem.tooltip.overflow.right === true) {
tooltipPosition.left = mouseX - self.$map.offset().left + 10;
}
if (selem.tooltip.overflow.bottom === true) {
if (elem.tooltip.overflow.bottom === true) {
Copy link
Owner

Choose a reason for hiding this comment

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

It seems that you have fixed this typo twice ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ahah yes indeed!

tooltipPosition.top = mouseY - self.$map.offset().top + 20;
}
}
Expand Down