Skip to content

Commit

Permalink
dist build
Browse files Browse the repository at this point in the history
  • Loading branch information
louisameline committed Aug 10, 2016
1 parent dd28095 commit 35405e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions dist/js/tooltipster-follower.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* tooltipster-follower v0.1.2
* tooltipster-follower v0.1.4
* https://github.com/louisameline/tooltipster-follower/
* Developed by Louis Ameline
* MIT license
Expand Down Expand Up @@ -586,10 +586,15 @@ $.tooltipster._plugin({
width: position.size.width
});

// reposition. We don't pass the event as it may be stale if it's the mouseenter
// event that initially started an opening delay. We rely on the events we
// recorded ourselves instead.
self.__follow();
// reposition. We don't pass the event if it's a mouseenter/touchstart event as
// it may be stale if it's the event that initially started an opening delay
// (there may have been move events after that), so we rely on the events we
// recorded ourselves instead. If it's a click event we'll use it but only in
// IE because Chrome and Firefox trigger an additional mousemove event when the
// mouse is clicked and that's enough for us.
var e = ($.tooltipster._env.IE && event.type === 'click') ? event : null;

self.__follow(e);

// append the tooltip HTML element to its parent
self.__instance._$tooltip.appendTo(self.__instance.option('parent'));
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tooltipster-follower.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.1.2"
"version": "0.1.4"
}

0 comments on commit 35405e8

Please sign in to comment.