1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
Commit graph

75 commits

Author SHA1 Message Date
Simo Kinnunen
4a8806debc Refactor screen code. Still not the best but a bit more manageable now. 2014-12-10 19:48:04 +09:00
Simo Kinnunen
f9e2c4f0f2 Move screen core into its own section. 2014-12-10 15:17:42 +09:00
Simo Kinnunen
d1dfbb3dd2 Move keyboard handling into its own section. 2014-12-10 14:53:56 +09:00
Simo Kinnunen
0014096a2f Make it more obvious that the touch handling is its own section. 2014-12-10 14:47:11 +09:00
Simo Kinnunen
e4114d87af Use WebSockets for the screen. The screen directive works, but needs a serious cleanup. 2014-12-10 14:27:14 +09:00
Simo Kinnunen
c4bb2e33b7 Fix pasting in Firefox and partially fix romaji input in Safari. 2014-12-03 13:05:28 +09:00
Simo Kinnunen
4f00bc3d11 Add a workaround for a super weird Safari bug causing mouseup before mousedown. Explained in comments. 2014-12-01 15:44:13 +09:00
Gunther Brunner
0492941fc6 Make screen-directive jQuery compatible. 2014-11-18 17:57:54 +09:00
Simo Kinnunen
9c0ceff440 Make sure screen size is never <36% because it gets too blurry and because Nexus 5 running 5.0 starts to get weird black lines appearing. 2014-11-13 13:23:29 +09:00
Gunther Brunner
8d5b21d9bc Start to add canvas auto-scaling for retina. 2014-11-12 19:32:58 +09:00
Gunther Brunner
7b3f1d3da7 Enable retina image retrieving also for retina desktops. 2014-11-10 21:32:29 +09:00
Simo Kinnunen
758e43e2e8 Extra line break for clarity. 2014-10-29 14:56:00 +09:00
Gunther Brunner
f705cd60a7 Add basic context-menu for actions. 2014-09-25 16:24:57 +09:00
Gunther Brunner
224c5cb7ca Add fake pinch support with Option/Alt key. 2014-09-17 17:56:09 +09:00
Simo Kinnunen
f87ca759c3 Fix tab key losing focus from the hidden input field. That should only happen on the device side. 2014-09-17 15:22:20 +09:00
Simo Kinnunen
09cca76d32 Fix unusable keyboard since the switch to the new touch system. 2014-09-17 15:21:50 +09:00
Simo Kinnunen
c6f63be01c Center canvas with an extended margin: auto trick. Gets rid of half-pixel positions possible with translate(). 2014-09-12 22:50:34 +09:00
Simo Kinnunen
5ade5fd61c Image size was cached in the wrong place, causing it to not be cached at all. 2014-09-12 21:50:15 +09:00
Simo Kinnunen
11494b509f Show touch contacts again. 2014-09-12 19:42:41 +09:00
Simo Kinnunen
6c09a53d55 New multitouch-compatible touch system. 2014-09-12 19:24:50 +09:00
Gunther Brunner
38d20eba9a Revert "Revert "Fix canvas rotation being off on devices which are naturally landscape.""
Reverting the Revert because we found the reason for the blurry image.

This reverts commit 7afd816cf918ed94b2ebf7671f804ae0f769fcb9.
2014-09-12 15:59:13 +09:00
Simo Kinnunen
0b9c1e6c7f Fix canvas size being off by one pixel due to C++ and JS not basing their calculations on same values. 2014-09-12 15:25:56 +09:00
Simo Kinnunen
1896d81bcf Fix unchanging rotated canvas size. 2014-09-11 21:28:33 +09:00
Gunther Brunner
f73cac8b24 Revert "Fix canvas rotation being off on devices which are naturally landscape."
Regressions:
1) Flicker badly in Chrome
2) Image gets very blurry because the image is uploaded to the GPU and there are rounding errors
3) Resizing is not smooth again

This needs another way of fixing.

This reverts commit 9fc1a9c7939b9f464c87a2f99cb06000f5aedcbc.
2014-09-11 20:59:17 +09:00
Simo Kinnunen
ede65d518c Fix canvas rotation being off on devices which are naturally landscape. 2014-09-05 12:00:27 +09:00
Gunther Brunner
ce604d8211 All JSHint trough webpack passes now. 2014-09-02 17:25:22 +09:00
Gunther Brunner
444a940fbb JSHint fixes. 2014-07-17 18:29:08 +09:00
Gunther Brunner
f5fb0a1317 Space key was being recognized as a change charset key. 2014-07-17 18:21:30 +09:00
Gunther Brunner
a06782ffb8 Added TODO for IE9. 2014-07-16 23:17:11 +09:00
Gunther Brunner
da40f061b4 Implemented change charset with the native PC charset keys.
Hacking was needed:
- Textarea changed to Input type "password", so that Alphanumeric keyboard is forced all the time.
- All the key input events are heavily browser/platform/keyboard dependent.
2014-07-16 22:57:50 +09:00
Gunther Brunner
8d165bc7a3 Changed default screen timeout to 3 seconds. 2014-07-16 21:10:12 +09:00
Gunther Brunner
df5a5e2308 Finally updated to angular-borderlayout. 2014-07-03 19:04:45 +09:00
Simo Kinnunen
6bb07d7c34 Fix Galaxy S5's display information segfaulting by trying to use the public SDK methods first. SurfaceComposerClient's getDisplayInfo is practically unusable on Galaxy S5 due to weird memory corruption issues. 2014-06-18 15:51:54 +09:00
Gunther Brunner
f634357217 Changed Screen failure timeout to 2 secs.
Changed Device Icon view popover timeout to 0.
2014-06-03 14:36:49 +09:00
Gunther Brunner
8a7c18a3fa Forcing retina ratio to 1.2 2014-05-29 18:58:09 +09:00
Gunther Brunner
0570ef2319 Small devices improvings. 2014-05-29 14:10:08 +09:00
Gunther Brunner
1e0a145490 Screen retina image made smaller. 2014-05-28 14:32:56 +09:00
Gunther Brunner
4d9b7d2d70 Rotation works for the host properly now. 2014-05-28 12:18:47 +09:00
Gunther Brunner
30ca92301a Refactored landscape handling to a directive, needs scope fix. 2014-05-28 00:26:41 +09:00
Gunther Brunner
fe2ccdfc17 Added rotation support for guest. 2014-05-27 23:40:28 +09:00
Gunther Brunner
7adfa8c19f Touch events mostly fixed. 2014-05-27 20:47:02 +09:00
Gunther Brunner
daa7677218 Added Copy functionality with CTRL-C. Still very rough. 2014-05-27 17:42:27 +09:00
Gunther Brunner
bde6d9f311 Added an elastic non-resizeable auto-fitting text area for the Clipboard. 2014-05-27 16:17:27 +09:00
Gunther Brunner
9e753551af Added Timeout error message when the screen takes more than 1 second to load. 2014-05-21 12:12:19 +09:00
Gunther Brunner
c9cc28997c Try to go to Home Screen in case of screen failure. 2014-05-20 19:34:48 +09:00
Gunther Brunner
282ceab17a Screen error message improved. 2014-05-20 19:17:28 +09:00
Gunther Brunner
d933a65412 Device screen error improved. 2014-05-20 16:24:39 +09:00
Simo Kinnunen
70dab49188 Fix mixed up touch/mouse events. 2014-05-19 13:51:45 +09:00
Gunther Brunner
345b4506f1 Tree not needed for now. 2014-05-16 12:43:47 +09:00
Gunther Brunner
3173393a58 No window on there. 2014-05-15 18:27:34 +09:00