Pierre Ossman
88589a44f7
Increase wheel step threshold
...
The previous value made the detection too sensitive and it was very
difficult to scroll precisely. A value of 50 pixels should give similar
behaviour to systems that don't do fine grained scrolling.
2020-06-12 09:18:46 +02:00
Pierre Ossman
f84bc57bda
Move wheel event handling to RFB class
...
The Mouse class does very little now so it mostly just obfuscate things.
Move everything directly in to the RFB class instead.
2020-06-12 09:18:46 +02:00
Pierre Ossman
4a87038080
Remove very legacy mouse event handling
...
This is only needed on such ancient versions of Internet Explorer that
it wouldn't satisfy our other requirements anyway.
2020-06-12 09:18:46 +02:00
Pierre Ossman
77c32d164d
Remove delayed wheel timer
...
This isn't really expected behaviour from a user, i.e. that an extremely
small wheel movement still gives a large scroll event in the remote application.
2020-06-12 09:18:46 +02:00
Samuel Mannehed
07a69954b1
Add lint rule for function declaration indentation
2020-06-12 09:18:46 +02:00
Pierre Ossman
8be924c9d9
Add touch gestures for mouse emulation
...
Add several single and multitouch gestures to simulate various mouse
actions that would otherwise be impossible to perform.
This replaces the old system where you could select which mouse button
a single touch would generate.
2020-06-12 09:18:46 +02:00
Pierre Ossman
440ec8a0b6
Start fake test clock at real clock time
...
Some code relies on the clock having a somewhat sane value, so let's not
start at 0.
2020-06-11 16:50:08 +02:00
Pierre Ossman
97b86abc94
Avoid fractional pixel sizes from Display
2020-06-11 16:50:08 +02:00
Pierre Ossman
0a6aec3578
Avoid printing the Websock buffer in tests
...
It takes forever and just messes up the output.
2020-06-11 16:50:08 +02:00
Pierre Ossman
6a19390baa
Switch to RGBx pixel format
...
This is what the browser wants so it avoids having to spend time
converting everything. Unfortunately it usually means the server instead
needs to convert it for us, but we assume it has more power than we do.
2020-06-08 07:57:17 +02:00
Pierre Ossman
f5b5767c98
Standardise on a single blit function
...
Keep everything simpler by always blitting in the same pixel format.
It's up to the decoders to convert if they need to.
2020-06-08 07:53:41 +02:00
Pierre Ossman
34f52a8f41
Fix bad BasicCompression check in Tight decoder
2020-06-08 07:53:41 +02:00
Pierre Ossman
18a68dfac1
Test correct handling of alpha
...
The forth byte of a pixel is undefined in most encodings, so make sure
the decoders don't leak that through as an alpha channel.
2020-06-08 07:53:16 +02:00
Pierre Ossman
15cfa13563
Add tests for the Tight decoders
2020-06-08 07:48:20 +02:00
Pierre Ossman
111225fa41
Split decoder tests to separate files
2020-06-08 07:46:42 +02:00
Pierre Ossman
224f95f997
Move tile handling to Hextile decoder
...
It is only used there so no need for it to be in the general
Display class.
2020-06-06 13:23:05 +02:00
Pierre Ossman
f694c32fd5
Merge branch 'camelcase' of https://github.com/samhed/noVNC
2020-06-05 09:41:25 +02:00
Pierre Ossman
0e37a3f83a
Merge branch 'limitmouse' of https://github.com/novnc/noVNC
2020-06-03 13:55:33 +02:00
Samuel Mannehed
cfb824ed03
Add camelCase rule to eslint
2020-05-31 23:37:29 +02:00
Samuel Mannehed
756af5b44c
Standardize on camelCase in App
2020-05-31 23:37:29 +02:00
Samuel Mannehed
f2fbaacc82
Standardize on camelCase in Base64
2020-05-31 23:37:29 +02:00
Samuel Mannehed
164bf50fda
Standardize on camelCase in Decoders
2020-05-31 23:37:29 +02:00
Samuel Mannehed
a7fe079f81
Standardize on camelCase in Logging
2020-05-31 23:37:29 +02:00
Samuel Mannehed
ea858bfa27
Standardize on camelCase in Websock
2020-05-31 23:21:35 +02:00
Samuel Mannehed
5d570207f7
Standardize on camelCase in Display
2020-05-31 23:21:35 +02:00
Samuel Mannehed
95632e413d
Standardize on camelCase in tests
2020-05-31 23:21:35 +02:00
Samuel Mannehed
8b0034ee84
Standardize on camelCase in utils
2020-05-31 23:21:35 +02:00
Samuel Mannehed
80187d158c
Standardize on camelCase in RFB
2020-05-31 23:21:35 +02:00
Samuel Mannehed
dff4fefa3c
Remove unused properties and variables
...
The code that used these were removed in the following commits:
* 9ff86fb718
(RFB._mouse_arr)
* bb6965f2e6
(old_requestAnimationFrame)
* 490d471c53
(Display._c_forceCanvas)
2020-05-31 22:49:41 +02:00
Samuel Mannehed
150596be83
Properly limit mouse moves to once every 17 ms
...
Previous attempt in c958269
had a number of issues, this is a full
rewrite, complete with improved unit tests.
Fixes github issue #1402
2020-05-31 00:53:15 +02:00
Samuel Mannehed
11a22dbf0c
Stop send mouse clicks while dragging in view only
2020-05-31 00:53:15 +02:00
Samuel Mannehed
006743857b
Standardize on camelCase for functions in RFB
2020-05-31 00:53:15 +02:00
Samuel Mannehed
e7dec5270e
Standardize on camelCase for variables in RFB
2020-05-31 00:53:15 +02:00
Samuel Mannehed
b5ff33a556
Remove unused mouse_arr variable
2020-05-08 22:30:20 +02:00
Pierre Ossman
42e3b03fa8
Consistently close dialogs on connect/disconnect
...
This was done a bit arbitrarily before which could easily miss things,
end up in the wrong state and not trigger animations correctly.
This reverts commit c12e5b2b54
and fixes
things in a different way.
2020-05-05 12:43:04 +02:00
Samuel Mannehed
776cda5dc4
Merge pull request #1398 from novnc/compressionlevel
...
Add ability to set Tight compression level
2020-05-01 20:49:49 +02:00
Samuel Mannehed
479d8cefd1
Add ability to set compression level
...
Fixes github issue #1382 .
2020-05-01 20:47:36 +02:00
Samuel Mannehed
a672168d4d
Add unit tests for mouse move limit
2020-05-01 20:37:48 +02:00
Samuel Mannehed
0f81407c64
Shorten rows to max 80 chars in mouse.js
2020-05-01 20:37:48 +02:00
Samuel Mannehed
f477469fb5
Fix wording in comment
2020-05-01 20:37:48 +02:00
Samuel Mannehed
c9582690ac
Merge pull request #1352 from uklatt/master
...
Limit mouse move events to one every 17 mS.
2020-05-01 20:36:18 +02:00
Uwe Klatt
44eb1fe59b
Limit mouse move events to one every 17 ms
2020-05-01 20:28:33 +02:00
Samuel Mannehed
e7fa686f32
Fix indentation for focus check
2020-05-01 15:34:14 +02:00
Samuel Mannehed
8df281cce6
Don't fade the control bar if it has focus
...
Fixes github issue #1369
2020-05-01 14:38:09 +02:00
Samuel Mannehed
c12e5b2b54
Hide the clipboard when not connected
...
Fixes github issue #1367 .
2020-05-01 13:35:34 +02:00
Samuel Mannehed
302895cdf3
Merge pull request #1396 from iblech/patch-1
...
Document default setting of `focusOnClick`
2020-04-29 18:58:04 +02:00
Ingo Blechschmidt
27a6978e30
Document default setting of `focusOnClick`
2020-04-29 09:36:32 +02:00
Filip Stedronsky
a1015d8db5
rfb: VeNCrypt Plain SecurityType support
...
This allows using TigerVNC server with PAM authentication (e.g. agains
LDAP or other extensible authentication mechanisms)
Tested with TigerVNC server (Xvnc -SecurityTypes Plain -PlainUsers '*')
Should not break anything else, this method is tried last when all
other fail.
Tested in Firefox 74 and Chromium 80
2020-04-08 08:58:32 +02:00
Alex Tanskanen
a040c402ed
Fix focus problem after closing the toolbar
...
Closing the toolbar would make the focus remain on the toolbar and
not in the session. The only way to switch focus was to click in the
session. This commit will automatically switch back focus to the session
after closing the toolbar.
2020-03-12 13:17:51 +01:00
Pierre Ossman
c4633ab333
Set a default value for the quality input
2020-02-28 14:56:57 +01:00