From d521d87d236d50d6958badcf1b04455a56cfa303 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 22 Feb 2019 23:22:09 +0100 Subject: [PATCH] Add note about portalButton dragging --- portal/assets/js/ynhpanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portal/assets/js/ynhpanel.js b/portal/assets/js/ynhpanel.js index 988aeba..e87106e 100644 --- a/portal/assets/js/ynhpanel.js +++ b/portal/assets/js/ynhpanel.js @@ -263,6 +263,9 @@ function init_portal_button_and_overlay() document.getElementsByTagName("head")[0].insertBefore(portalStyle, null); // Bind portal button + // FIXME : this somehow prevent the portalButton + // from being dragged correctly + // when mouse is moving too fast window.addEvent(portalButton, 'click', function(e){ // Prevent default click window.eventPreventDefault(e); @@ -282,7 +285,6 @@ function init_portal_button_and_overlay() Element.addClass(portalOverlay, 'ynh-fadeOut'); } }); - } //