From 6d42388b75a9b14ddf0c353d45d9ff012564ecab Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 12 Nov 2012 02:13:15 -0800 Subject: [PATCH] Fixed click handling. --- guacamole/src/main/webapp/scripts/client-ui.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/guacamole/src/main/webapp/scripts/client-ui.js b/guacamole/src/main/webapp/scripts/client-ui.js index 989261ed5..433c88696 100644 --- a/guacamole/src/main/webapp/scripts/client-ui.js +++ b/guacamole/src/main/webapp/scripts/client-ui.js @@ -67,8 +67,8 @@ GuacUI.Client = { "expected_input_x" : 0, "expected_input_y" : 0, - "expected_input_width" : 0, - "expected_input_height" : 0 + "expected_input_width" : 1, + "expected_input_height" : 1 }; @@ -272,9 +272,10 @@ GuacUI.Client.PanOverlay = function() { * Transition to PAN_TYPING when the user taps on the overlay. */ - pan_overlay.addEventListener("click", function() { - GuacUI.StateManager.setState(GuacUI.Client.PAN_TYPING); - }, false); + pan_overlay.addEventListener("click", function(e) { + GuacUI.StateManager.setState(GuacUI.Client.states.PAN_TYPING); + e.stopPropagation(); + }, true); };