From 8adbbd6e43e317b3e2e32b2257f48f566c2bba63 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 23 Feb 2012 15:46:11 -0800 Subject: [PATCH] Showing menu whenever mouse leaves document is too aggressive ... just using menuControl for now (see #94). --- src/main/webapp/scripts/interface.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main/webapp/scripts/interface.js b/src/main/webapp/scripts/interface.js index d1ec09c..0beb793 100644 --- a/src/main/webapp/scripts/interface.js +++ b/src/main/webapp/scripts/interface.js @@ -244,25 +244,6 @@ var GuacamoleUI = { // Detect long-press at bottom of screen document.body.addEventListener('touchstart', GuacamoleUI.startLongPressDetect, true); - // Show menu if mouse leaves document - document.addEventListener('mouseout', function(e) { - - // Get parent of the element the mouse pointer is leaving - if (!e) e = window.event; - var target = e.relatedTarget || e.toElement; - - // Ensure target is not document nor child of document - var targetParent = target; - while (targetParent != null) { - if (targetParent == document) return; - targetParent = targetParent.parentNode; - } - - // Start detection of intent to open menu - GuacamoleUI.startMenuOpenDetect(); - - }, true); - // Reconnect button GuacamoleUI.buttons.reconnect.onclick = function() { window.location.reload(); -- 1.7.10.4