You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/11/14 13:26:36 UTC

[incubator-dlab] branch DLAB-1214 updated: [DLAB-1212]: Recovered the previous zoom due to non-coinciding cursor and mouse

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1214
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1214 by this push:
     new 3986e50  [DLAB-1212]: Recovered the previous zoom due to non-coinciding cursor and mouse
3986e50 is described below

commit 3986e50b5aeaa5af3a39416b0ab432736f78eb01
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Nov 14 15:26:25 2019 +0200

    [DLAB-1212]: Recovered the previous zoom due to non-coinciding cursor and mouse
---
 .../webapp/src/app/webterminal/webterminal.component.scss         | 2 +-
 .../resources/webapp/src/app/webterminal/webterminal.component.ts | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.scss b/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.scss
index 3ced756..7d986f4 100644
--- a/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.scss
+++ b/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.scss
@@ -37,6 +37,6 @@
   height: 100%;
   flex-direction: column;
   align-items: center;
-  zoom: .85 !important;
+  // zoom: .85 !important;
   // -moz-transform: scale(.85);
 }
diff --git a/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.ts b/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.ts
index dd05db0..1a5cb9d 100644
--- a/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/webterminal/webterminal.component.ts
@@ -80,10 +80,10 @@ export class WebterminalComponent implements OnInit {
     // Mouse
     const mouse = new Guacamole.Mouse(guac.getDisplay().getElement());
     mouse.onmousemove = (mouseState) => {
-      if (navigator.userAgent.indexOf('Firefox') === -1) {
-        mouseState.x = mouseState.x + 125;
-        mouseState.y = mouseState.y + 65;
-      }
+      // if (navigator.userAgent.indexOf('Firefox') === -1) {
+      //   mouseState.x = mouseState.x + 125;
+      //   mouseState.y = mouseState.y + 65;
+      // }
       guac.sendMouseState(mouseState);
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org