]> git.proxmox.com Git - mirror_novnc.git/log
mirror_novnc.git
6 years agoFix duplicate beforeEach() hook
Pierre Ossman [Sat, 14 Oct 2017 10:58:25 +0000 (12:58 +0200)]
Fix duplicate beforeEach() hook

6 years agoRemove wsProtocols setting
Pierre Ossman [Sat, 14 Oct 2017 10:45:56 +0000 (12:45 +0200)]
Remove wsProtocols setting

It isn't in use anymore since we deprecated support for Base64 mode.

6 years agoSwitch to URL for connect()
Pierre Ossman [Sat, 14 Oct 2017 10:02:02 +0000 (12:02 +0200)]
Switch to URL for connect()

This is more in line with how other JavaScript APIs work.

6 years agoAvoid code duplication in RFB test preparation
Pierre Ossman [Sat, 14 Oct 2017 10:00:19 +0000 (12:00 +0200)]
Avoid code duplication in RFB test preparation

6 years agoTidy up variable initialisation
Pierre Ossman [Sat, 14 Oct 2017 09:24:16 +0000 (11:24 +0200)]
Tidy up variable initialisation

Sort things by category, and organise everything in the same place.
We don't support reuse of RFB objects so we can safely init everything
in the constructor.

6 years agoRemove onFBU* callbacks
Pierre Ossman [Fri, 13 Oct 2017 12:45:44 +0000 (14:45 +0200)]
Remove onFBU* callbacks

They are internal mechanisms that callers should be isolated from.

6 years agoAdd resize as a capability
Pierre Ossman [Fri, 13 Oct 2017 12:40:25 +0000 (14:40 +0200)]
Add resize as a capability

Makes the API more transparent than piggybacking on completion
of the first framebuffer update.

6 years agoMake power API generic
Pierre Ossman [Fri, 13 Oct 2017 12:25:26 +0000 (14:25 +0200)]
Make power API generic

Decouple it from XVP and make it a generic API.

6 years agoAdd proper protocol encoder for XVP messages
Pierre Ossman [Fri, 13 Oct 2017 11:57:19 +0000 (13:57 +0200)]
Add proper protocol encoder for XVP messages

6 years agoAllow other credentials than just password
Pierre Ossman [Fri, 13 Oct 2017 11:50:49 +0000 (13:50 +0200)]
Allow other credentials than just password

Makes the XVP authentication mechanism more general.

6 years agoMerge pull request #947 from samhed/lite_center
Samuel Mannehed [Sat, 4 Nov 2017 10:50:50 +0000 (11:50 +0100)]
Merge pull request #947 from samhed/lite_center

Properly center things in vnc_lite.html

6 years agoImproved focus handling on touch input field
Pierre Ossman [Thu, 2 Nov 2017 14:30:36 +0000 (15:30 +0100)]
Improved focus handling on touch input field

The previous method of retaining focus didn't work reliably when
the RFB object tried to move the focus to the canvas. Add a setting
to control "focus on click" behaviour instead of letting them try
to fight it out.

6 years agoCenter canvas vertically as well in vnc_lite
Samuel Mannehed [Wed, 1 Nov 2017 07:40:11 +0000 (08:40 +0100)]
Center canvas vertically as well in vnc_lite

Fixes issue #881.

6 years agoAdd small padding to buttons in vnc_lite
Samuel Mannehed [Wed, 1 Nov 2017 07:39:50 +0000 (08:39 +0100)]
Add small padding to buttons in vnc_lite

6 years agoProperly center status message in vnc_lite
Samuel Mannehed [Tue, 31 Oct 2017 17:51:33 +0000 (18:51 +0100)]
Properly center status message in vnc_lite

This gets rid of the table and uses a flexbox instead.

6 years agoAdd missing semicolon
Samuel Mannehed [Tue, 31 Oct 2017 17:50:34 +0000 (18:50 +0100)]
Add missing semicolon

6 years agoMove styling from vnc_lite.html to css
Samuel Mannehed [Tue, 31 Oct 2017 15:37:12 +0000 (16:37 +0100)]
Move styling from vnc_lite.html to css

This clears up some conflicting style attributes as well. HTML
inline-styling is prioritized above css styling.

6 years agoRemove unnecessary css rules for lite
Samuel Mannehed [Tue, 31 Oct 2017 15:16:29 +0000 (16:16 +0100)]
Remove unnecessary css rules for lite

6 years agoGet rid of unnecessary noVNC_container in lite
Samuel Mannehed [Tue, 31 Oct 2017 15:06:57 +0000 (16:06 +0100)]
Get rid of unnecessary noVNC_container in lite

If we want to keep vnc_lite simple, we shouldn't have unnecessary
elements. All aspects of the container could be moved up a step in the
hierarchy.

6 years agoUse more subtle colors for warn and error in lite
Samuel Mannehed [Mon, 30 Oct 2017 14:31:56 +0000 (15:31 +0100)]
Use more subtle colors for warn and error in lite

The clear red and yellow colors used before does not match well with the
rest of noVNC's color scheme.

6 years agoRemove prefixed versions of linear-gradient
Samuel Mannehed [Mon, 30 Oct 2017 14:29:19 +0000 (15:29 +0100)]
Remove prefixed versions of linear-gradient

Other parts of noVNC have significantly higher requirements than this.
All supported browsers will be able to handle the real linear-gradient.

6 years agoHide keyboard object from RFB callers
Pierre Ossman [Fri, 13 Oct 2017 11:07:39 +0000 (13:07 +0200)]
Hide keyboard object from RFB callers

6 years agoHide mouse object from RFB callers
Pierre Ossman [Fri, 13 Oct 2017 11:07:17 +0000 (13:07 +0200)]
Hide mouse object from RFB callers

6 years agoHide display object from RFB callers
Pierre Ossman [Fri, 13 Oct 2017 10:46:47 +0000 (12:46 +0200)]
Hide display object from RFB callers

6 years agoSplit out internal API
Pierre Ossman [Fri, 13 Oct 2017 10:18:45 +0000 (12:18 +0200)]
Split out internal API

We only commit to maintaining the API of the RFB object, not the
other modules.

6 years agoUpdate link to API specification
Samuel Mannehed [Tue, 24 Oct 2017 20:21:42 +0000 (22:21 +0200)]
Update link to API specification

6 years agoLet RFB object make sure canvas can have focus
Pierre Ossman [Wed, 18 Oct 2017 15:01:34 +0000 (17:01 +0200)]
Let RFB object make sure canvas can have focus

Let's set up things properly ourselves instead of forcing everyone
to create their canvas element just like we want it.

6 years agoRemove package-lock.json
Pierre Ossman [Wed, 18 Oct 2017 14:09:48 +0000 (16:09 +0200)]
Remove package-lock.json

We're an upstream component project so we prefer to keep ourselves
up to date with the latest version of our dependencies. Downstream
packagers will have to do the version locking if they feel it is
necessary.

6 years agoRemove 'focusContainer' attribute from API documentation
Pierre Ossman [Wed, 18 Oct 2017 13:51:43 +0000 (15:51 +0200)]
Remove 'focusContainer' attribute from API documentation

It was removed from the code in the previous merge.

6 years agoRemove 'focused' attributes from API documentation
Pierre Ossman [Wed, 18 Oct 2017 13:13:19 +0000 (15:13 +0200)]
Remove 'focused' attributes from API documentation

They were removed from the code in the previous merge.

6 years agoMerge branch 'focus' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Wed, 18 Oct 2017 13:12:46 +0000 (15:12 +0200)]
Merge branch 'focus' of https://github.com/CendioOssman/noVNC

6 years agoDon't let the hidden input field be a tab stop
Pierre Ossman [Wed, 18 Oct 2017 13:04:45 +0000 (15:04 +0200)]
Don't let the hidden input field be a tab stop

It's very confusing if you tab between elements and all of a sudden
something hidden gets focus.

6 years agoRestore handling of key events for virtual keyboard
Pierre Ossman [Mon, 16 Oct 2017 14:19:49 +0000 (16:19 +0200)]
Restore handling of key events for virtual keyboard

We broke handling of keydown/keyup when we moved the focus to the
canvas, as events from our input element would then no longer be
caught when they bubbled up to the document object (where we
previously caught events).

Restore the previous behaviour in a cleaner manner by creating a
second Keyboard object to handle this extra input variant.

6 years agoMake sure control bar stays visible on Tab
Pierre Ossman [Mon, 16 Oct 2017 14:08:29 +0000 (16:08 +0200)]
Make sure control bar stays visible on Tab

Avoid the deprecated keypress event in favour of the keydown event.
It has the benefit of triggering for all keys, not just those that
produce symbols.

6 years agoInclude .js for anonymous scripts
Pierre Ossman [Mon, 16 Oct 2017 13:43:09 +0000 (15:43 +0200)]
Include .js for anonymous scripts

It is required for syntax highlighting in at least Firefox' debugger.

6 years agoStop giving host field default focus
Pierre Ossman [Fri, 6 Oct 2017 15:12:53 +0000 (17:12 +0200)]
Stop giving host field default focus

It's a field that isn't shown by default and rarely changed.

6 years agoAdd focus state for control bar buttons
Pierre Ossman [Wed, 5 Oct 2016 08:21:47 +0000 (10:21 +0200)]
Add focus state for control bar buttons

The focus can now move to the canvas so it is no longer a source of
confusion. It is also important to indicate that they have focus now
that we actually respect it.

6 years agoOnly grab key events on canvas
Pierre Ossman [Wed, 5 Oct 2016 08:21:17 +0000 (10:21 +0200)]
Only grab key events on canvas

Give the canvas proper focus handling. This avoids messy logic that
needs to disable and enable event handling when we want to interact
with other UI elements.

It also makes sure we can properly inhibit the browser from triggering
local actions on key presses.

6 years agoRecieve challange before expecting callback
Samuel Mannehed [Tue, 17 Oct 2017 10:29:43 +0000 (12:29 +0200)]
Recieve challange before expecting callback

After commit abfe5b7a37414bdd073152f55018fd3995aac50d we expect a
challange before sending the callback to the UI. Fixes tests.

6 years agoCheck if <audio>.play() returns a promise
Samuel Mannehed [Tue, 17 Oct 2017 10:16:38 +0000 (12:16 +0200)]
Check if <audio>.play() returns a promise

It doesn't always. IE and Edge crashed when trying to play the bell due
to this. Fixes #929.

6 years agoWait for challenge before asking for password
Samuel Mannehed [Mon, 16 Oct 2017 13:39:10 +0000 (15:39 +0200)]
Wait for challenge before asking for password

Fixes #928.

6 years agoRemove dead link to Ganeti Web Manager
Samuel Mannehed [Mon, 16 Oct 2017 11:12:50 +0000 (13:12 +0200)]
Remove dead link to Ganeti Web Manager

6 years agoSave pw for reconnections when using query params
Samuel Mannehed [Mon, 16 Oct 2017 09:06:40 +0000 (11:06 +0200)]
Save pw for reconnections when using query params

6 years agoUpdate API since sendKey() has a new parameter
Samuel Mannehed [Thu, 12 Oct 2017 13:26:21 +0000 (15:26 +0200)]
Update API since sendKey() has a new parameter

Commit 94f5cf05f37191ec028781bd486fbf22a460e515 added a new parameter to
the public function in the RFB object.

6 years agoMouse and Keyboard are seperate files now
Samuel Mannehed [Thu, 12 Oct 2017 13:17:54 +0000 (15:17 +0200)]
Mouse and Keyboard are seperate files now

6 years agoUpdate link to Websock API page
Samuel Mannehed [Thu, 12 Oct 2017 13:04:59 +0000 (15:04 +0200)]
Update link to Websock API page

6 years agoAdd note clarifying the disconnected state
Samuel Mannehed [Thu, 12 Oct 2017 13:01:38 +0000 (15:01 +0200)]
Add note clarifying the disconnected state

Makes it clear that the RFB module can not transition away from the
disconnected state.

6 years agoUse markdown-style tables instead of <table>
Samuel Mannehed [Thu, 12 Oct 2017 13:00:55 +0000 (15:00 +0200)]
Use markdown-style tables instead of <table>

Much easier to read in plaintext

6 years agoRemove trailing whitespace
Samuel Mannehed [Thu, 12 Oct 2017 12:59:49 +0000 (14:59 +0200)]
Remove trailing whitespace

6 years agoUse underscores for bold text intead of asterixes
Samuel Mannehed [Thu, 12 Oct 2017 12:58:35 +0000 (14:58 +0200)]
Use underscores for bold text intead of asterixes

Makes an asterix-list easier to read in plaintext

6 years agoAdd numbering for each header in the API doc
Samuel Mannehed [Thu, 12 Oct 2017 12:57:11 +0000 (14:57 +0200)]
Add numbering for each header in the API doc

6 years agoMove API documentation from wiki to the repo
Samuel Mannehed [Thu, 12 Oct 2017 12:48:38 +0000 (14:48 +0200)]
Move API documentation from wiki to the repo

Since the API is tied to the source code it makes more sence to have it
in the repository where it can more easily be tied to different versions
of the software.

6 years agoFix missing semicolons
Samuel Mannehed [Thu, 12 Oct 2017 10:42:16 +0000 (12:42 +0200)]
Fix missing semicolons

Was missing in commit 49a8183757667d53ed73fc17a9bb4089933c0cac

6 years agoRemove 'fuzzy' marks that were mistakenly left
Samuel Mannehed [Wed, 11 Oct 2017 14:20:25 +0000 (16:20 +0200)]
Remove 'fuzzy' marks that were mistakenly left

During the last round of translations a few fuzzy markings was not
removed even though the string was updated. This can happen when the
translators edit the .po-file manually. Fuzzy markings result in that
the strings do not get included into the generated .json files.

6 years agoFix Dutch translation for "Reconnecting..."
Samuel Mannehed [Wed, 11 Oct 2017 14:19:22 +0000 (16:19 +0200)]
Fix Dutch translation for "Reconnecting..."

6 years agoUpdate .json for Dutch and Swedish translations
Samuel Mannehed [Wed, 11 Oct 2017 08:52:48 +0000 (10:52 +0200)]
Update .json for Dutch and Swedish translations

6 years agoMerge pull request #921 from yvanoers/master
Samuel Mannehed [Wed, 11 Oct 2017 08:11:55 +0000 (10:11 +0200)]
Merge pull request #921 from yvanoers/master

Update Dutch translation

6 years agoMerge pull request #920 from flumm/german
Samuel Mannehed [Wed, 11 Oct 2017 08:01:34 +0000 (10:01 +0200)]
Merge pull request #920 from flumm/german

updated german translations

6 years agoupdated german translations
Dominik Csapak [Tue, 10 Oct 2017 14:43:31 +0000 (16:43 +0200)]
updated german translations

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoMerge pull request #922 from kosmasgiannis/greek
Samuel Mannehed [Wed, 11 Oct 2017 07:04:13 +0000 (09:04 +0200)]
Merge pull request #922 from kosmasgiannis/greek

Update Greek translation

6 years agoUpdate Greek translation
Giannis Kosmas [Wed, 11 Oct 2017 06:52:26 +0000 (09:52 +0300)]
Update Greek translation

6 years agoMerge pull request #901 from mariuszjamro/master
Samuel Mannehed [Wed, 11 Oct 2017 06:27:27 +0000 (08:27 +0200)]
Merge pull request #901 from mariuszjamro/master

Add polish translation

6 years agoUpdate Dutch translations
Yuri van Oers [Tue, 10 Oct 2017 19:51:23 +0000 (21:51 +0200)]
Update Dutch translations

6 years agoAdd polish translation
Mariusz Jamro [Tue, 10 Oct 2017 13:37:31 +0000 (15:37 +0200)]
Add polish translation

6 years agoGet proper same-origin behaviour when loading modules
Pierre Ossman [Mon, 9 Oct 2017 14:00:38 +0000 (16:00 +0200)]
Get proper same-origin behaviour when loading modules

The browsers currently do not default to same-origin behaviour for
modules, so we need to be explicit in order for necessary
credentials to be passed along. This seems to be changing though,
but we need to wait for the browsers to actually roll out more
lenient defaults:

https://github.com/whatwg/fetch/pull/585

6 years agoUse markdown links in README
Samuel Mannehed [Mon, 9 Oct 2017 09:06:15 +0000 (11:06 +0200)]
Use markdown links in README

6 years agoAdd link to website in README
Samuel Mannehed [Mon, 9 Oct 2017 08:58:24 +0000 (10:58 +0200)]
Add link to website in README

6 years agoMerge pull request #913 from kosmasgiannis/missing_quote
Samuel Mannehed [Fri, 6 Oct 2017 21:03:55 +0000 (23:03 +0200)]
Merge pull request #913 from kosmasgiannis/missing_quote

Add missing quotes

6 years agoMerge pull request #917 from kosmasgiannis/autoconnect
Samuel Mannehed [Fri, 6 Oct 2017 21:03:10 +0000 (23:03 +0200)]
Merge pull request #917 from kosmasgiannis/autoconnect

autoconnect variable was used before it was defined

6 years agoautoconnect variable was used before it was defined.
Giannis Kosmas [Fri, 6 Oct 2017 19:53:52 +0000 (22:53 +0300)]
autoconnect variable was used before it was defined.

6 years agoAdd tests for Intel AMT compatible mode
Pierre Ossman [Fri, 6 Oct 2017 11:16:36 +0000 (13:16 +0200)]
Add tests for Intel AMT compatible mode

6 years agoAdd missing quotes
Giannis Kosmas [Fri, 6 Oct 2017 11:15:22 +0000 (14:15 +0300)]
Add missing quotes

6 years agoUpdate Swedish translation
Pierre Ossman [Fri, 6 Oct 2017 08:19:19 +0000 (10:19 +0200)]
Update Swedish translation

6 years agoUpdate translation template
Pierre Ossman [Fri, 6 Oct 2017 08:09:28 +0000 (10:09 +0200)]
Update translation template

6 years agoMake port optional in ui.js as well
Pierre Ossman [Fri, 6 Oct 2017 08:07:47 +0000 (10:07 +0200)]
Make port optional in ui.js as well

It is optional in the RFB object since 1a50f68, so we don't need it
at the UI layer either.

6 years agoUpdate to new jsdom API
Pierre Ossman [Fri, 6 Oct 2017 08:05:29 +0000 (10:05 +0200)]
Update to new jsdom API

6 years agoMerge pull request #910 from novnc/infra/publish
Solly Ross [Thu, 5 Oct 2017 21:30:24 +0000 (17:30 -0400)]
Merge pull request #910 from novnc/infra/publish

Set up for Publishing on NPM

6 years agoMerge pull request #893 from CendioOssman/amt
Samuel Mannehed [Thu, 5 Oct 2017 14:59:53 +0000 (16:59 +0200)]
Merge pull request #893 from CendioOssman/amt

Basic support for Intel AMT

6 years ago[release] v1.0.0-testing.2
Solly Ross [Wed, 4 Oct 2017 19:03:26 +0000 (15:03 -0400)]
[release] v1.0.0-testing.2

v1.0.0-testing.2 is the "make sure all of our autopublishing works
properly" release.  Assuming everything goes well, it should shortly be
followed by v1.0.0 proper.

6 years ago[infra] Publish to NPM via Travis
Solly Ross [Wed, 4 Oct 2017 18:58:58 +0000 (14:58 -0400)]
[infra] Publish to NPM via Travis

This commit sets up Travis to publish to NPM on tags, to the
@novnc/novnc repository.

6 years ago[infra] updated packaging config
Solly Ross [Tue, 3 Oct 2017 23:36:36 +0000 (19:36 -0400)]
[infra] updated packaging config

This updates the .npmignore file to ignore some new files that were
recently added, and to keep the `core` directory, so that noVNC can be
used as an ES6 module from NPM.

This also updates package.json to clean when generating lib files in the
`prepare` phase (which has replaced the `prepublish` phase).

6 years ago[infra] fix vendor import paths on built files
Solly Ross [Tue, 3 Oct 2017 22:40:52 +0000 (18:40 -0400)]
[infra] fix vendor import paths on built files

A previous commit started (quasi-correctly) rewriting vendor import
paths on built files.  The gist of it was correct, but it incorrectly
rewrote paths in vendor itself.

The babel plugin in use operated on canonical absolute paths.  This mean
that it saw no difference between the import
`../vendor/pako/lib/utils/foo` and `../utils/foo`, where the later was
actually in the `vendor/pako/lib/bar` directory.  This rewrote imports
in files in the vendor directory itself.  However, since those files
were *already* in the correct relative location, the new import was
incorrect by a degree of `..`.

Now, we only rewrite vendor paths on things in the `core` directory.

6 years ago[infra] option to clean on use_require.js
Solly Ross [Tue, 3 Oct 2017 22:21:36 +0000 (18:21 -0400)]
[infra] option to clean on use_require.js

This adds an option to `utils/use_require.js` which cleans the lib
and build directories before regenerating them.  This will enable us
to make sure we always have a fresh copy of the lib dir before
publishing.

6 years agoMerge pull request #907 from DirectXMan12/tests/fix-travis
Solly Ross [Tue, 3 Oct 2017 20:27:38 +0000 (16:27 -0400)]
Merge pull request #907 from DirectXMan12/tests/fix-travis

[infra] Fix Travis Sauce Auth

6 years ago[infra] Fix Travis Sauce Auth
Solly Ross [Tue, 3 Oct 2017 20:14:38 +0000 (16:14 -0400)]
[infra] Fix Travis Sauce Auth

Travis-Sauce authentication somehow broke along the way.  This PR
fixes that by resetting the credentials.

6 years agoMerge branch 'fixes/polyfill' of https://github.com/qmfrederik/noVNC
Pierre Ossman [Fri, 29 Sep 2017 14:29:00 +0000 (16:29 +0200)]
Merge branch 'fixes/polyfill' of https://github.com/qmfrederik/noVNC

6 years agoMerge branch 'optional-port' of https://github.com/bkylerussell/noVNC
Pierre Ossman [Fri, 29 Sep 2017 14:26:02 +0000 (16:26 +0200)]
Merge branch 'optional-port' of https://github.com/bkylerussell/noVNC

6 years agoOnly load ES6 module loader polyfill if needed
Frederik Carlier [Fri, 29 Sep 2017 12:09:25 +0000 (14:09 +0200)]
Only load ES6 module loader polyfill if needed

Safari and Chrome now have native support for modules, so we need to make sure we only load our polyfill when actually needed.

6 years agoRestore logging properly after log tests
Samuel Mannehed [Thu, 28 Sep 2017 12:11:44 +0000 (14:11 +0200)]
Restore logging properly after log tests

Our logging module keeps its own copy so we need to call init_logging in
the test cleanup to update things.

6 years agoSetup chai extensions centrally
Samuel Mannehed [Thu, 28 Sep 2017 12:10:19 +0000 (14:10 +0200)]
Setup chai extensions centrally

They have global effects so make that clear by doing the setup in a
single place.

6 years agoUpgrade and fix sinon.js
Samuel Mannehed [Thu, 28 Sep 2017 12:05:20 +0000 (14:05 +0200)]
Upgrade and fix sinon.js

Converted version downloaded from sinonjs.org. Fixed version that
doesn't register itself on the global object. This forces all modules to
do a proper import.

6 years agoMerge pull request #896 from novnc/combinemousewheel
Samuel Mannehed [Wed, 27 Sep 2017 13:37:04 +0000 (15:37 +0200)]
Merge pull request #896 from novnc/combinemousewheel

Combine small mouse wheel events

6 years agoBasic support for Intel AMT
Pierre Ossman [Fri, 8 Sep 2017 09:22:40 +0000 (11:22 +0200)]
Basic support for Intel AMT

This restores basic support for Intel AMT servers. They refuse clients
that request more than 16 bits per pixels, so implement a fallback
in just the "Raw" encoding.

6 years agoAlways hide local cursor initally
Pierre Ossman [Fri, 8 Sep 2017 09:18:47 +0000 (11:18 +0200)]
Always hide local cursor initally

We don't know if the server will support a client side cursor, so
we have to assume a server side one to start with.

6 years agoRemove rect arguments onFBUComplete callback
Pierre Ossman [Thu, 7 Sep 2017 15:16:16 +0000 (17:16 +0200)]
Remove rect arguments onFBUComplete callback

This callback is for an entire FBU, so it's not really relevant
to include info about just a single of the included rects.

6 years agoClean up encoding handling
Pierre Ossman [Thu, 7 Sep 2017 14:57:46 +0000 (16:57 +0200)]
Clean up encoding handling

Allow things to be more explicit and dynamic. Makes it easier to read
and allows us to have more flexible selection of encodings in the future.

6 years agoRemove unused imports
Samuel Mannehed [Sun, 17 Sep 2017 14:25:15 +0000 (16:25 +0200)]
Remove unused imports

6 years agoCombine small mouse wheel events
Samuel Mannehed [Tue, 12 Sep 2017 09:16:24 +0000 (11:16 +0200)]
Combine small mouse wheel events

The VNC protocol can't handle different deltas or speeds for a mouse
wheel event. When using a device that sends a lot of small mouse wheel
events, instead of fewer larger steps, the effect was that mouse wheel
scrolling was way to sensitive.
This patch looks at the delta of wheel events and doesn't send events
until the combined delta has passed a threshold. Single events that
doesn't pass the threshold get sent after a timeout in order to not
loose any events.

Fixes #577.

6 years agoSplit devices.js into keyboard.js and mouse.js
Samuel Mannehed [Tue, 12 Sep 2017 09:03:39 +0000 (11:03 +0200)]
Split devices.js into keyboard.js and mouse.js

6 years agoAdd tests for mouse module
Samuel Mannehed [Sun, 17 Sep 2017 14:29:59 +0000 (16:29 +0200)]
Add tests for mouse module