Commit Graph

108 Commits

Author SHA1 Message Date
Simo Kinnunen
35a6556985 Don't group onmessage inside onopen. Looks like we may lose a message that way (causing the initial load in production to sometimes fail to display the screen), although there is no time to properly test it right now. 2015-04-30 22:15:04 +09:00
Simo Kinnunen
9c3ecf3d31 Increase image pool to 10 images. 2015-04-27 18:25:55 +09:00
Simo Kinnunen
94ea19c791 Add a very simple image pool to limit the amount of new images loaded. Hoping it will fix the screen sometimes stopping. 2015-04-27 17:03:51 +09:00
Simo Kinnunen
9ea0839b0b Rotate canvas image on client side when necessary. Minicap now always returns the image in upright position for newer devices. 2015-04-23 14:45:10 +09:00
Simo Kinnunen
685882d19f The screen should now stretch to fill all the available area while maintaining aspect ratio. Includes a terrifying hack for the 270deg rotation. 2015-04-22 19:31:19 +09:00
Simo Kinnunen
0839602943 Minor refactoring with no functional changes. 2015-04-18 18:54:35 +09:00
Simo Kinnunen
53bd852d48 Make sure to revokeObjectURL() when the screen image is no longer needed. Should help with memory. 2015-04-16 14:34:00 +09:00
Simo Kinnunen
95e9dd0b82 Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death. 2015-04-15 18:55:46 +09:00
Simo Kinnunen
70a142b2ff Fix screen on x86. 2015-01-14 17:30:19 +09:00
Simo Kinnunen
b2e114c9be Change all "api" URLs. Ideally the path prefix would be an option. 2014-12-17 21:29:51 +09:00
Simo Kinnunen
19f38456b8 Add "secure view" error back. 2014-12-11 17:56:43 +09:00
Simo Kinnunen
49bc669ef6 Remove an extra blank line. 2014-12-10 19:49:08 +09:00
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
20332dea59 Preparing for new dropdown-toggle. 2014-11-19 16:47:17 +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
Simo Kinnunen
67b6665241 Fixed undefined variables in canvas renderer. 2014-11-13 11:19:20 +09:00
Gunther Brunner
8d5b21d9bc Start to add canvas auto-scaling for retina. 2014-11-12 19:32:58 +09:00
Gunther Brunner
2fdcf8243c Refactor render. Disabling WebGL render for now. 2014-11-12 18:40:35 +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
Simo Kinnunen
1ce8b52927 Fix touch coordinates in 270deg rotation. 2014-10-29 12:30:46 +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
6714ba8d24 Move most installation functionality to InstallService. This makes it easier to have multiple drop areas while keeping them in sync. 2014-09-05 17:28:01 +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
743f8becd6 - Finally, most of the unit tests now passes (resolving dependencies also).
- Shims now exports angular module name, however some of them clash with the original.
2014-08-21 22:04:19 +09:00
Gunther Brunner
4edcb387d4 Added favicon resolving to URL input.
Added blur event after entering URL.
Focus screen after entering URL.
2014-07-31 20:30:43 +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
321e61db64 Added stub for refactoring screen to screen-keyboard and screen-touch. 2014-07-17 18:20:10 +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