Skip to content

Commit

Permalink
Fix: firefox comment collapse on mouseout (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDeMicco authored Apr 17, 2018
1 parent 6ae7e32 commit c63f087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AnnotationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class AnnotationDialog extends EventEmitter {
* @return {void}
*/
mouseleaveHandler(event) {
const isStillInDialog = util.isInDialog(event, event.toElement);
const isStillInDialog = util.isInDialog(event, event.relatedTarget);
if (!isStillInDialog && this.hasAnnotations) {
this.hide();
}
Expand Down

0 comments on commit c63f087

Please sign in to comment.