]> git.proxmox.com Git - mirror_novnc.git/commit - vnc.html
Viewport clip/drag for mobile/touchscreen devices.
authorJoel Martin <github@martintribe.org>
Thu, 22 Sep 2011 15:36:23 +0000 (10:36 -0500)
committerJoel Martin <github@martintribe.org>
Thu, 22 Sep 2011 15:36:23 +0000 (10:36 -0500)
commita5df24b488a6ef99f9e06313265a95985a9ff691
tree930cd7b1b919bce3a0c63b2da96e0c560ee1aada
parente0b23efe95b068b749581e6bda2adbd7746d016c
Viewport clip/drag for mobile/touchscreen devices.

API changes (forward compatible):

- Display: add 'viewport' conf option to turn on and off viewport
  mode.
- RFB: add 'viewportDrag' option to enable/disable viewport dragging
  mode.

Other:

- Add clip mode setting to default UI. For touch devices, clipping is
  forced on.
- Use CSS media queries to adjust visual elements based on screen
  size. Especially disconnected logo size/position and button text size.
- Catch page unload while connected and give a confirm dialog.
- Change mouse button selector to a single button that changes between
  ' ', 'L', 'M', 'R' when clicked (empty means mouse is just being
  moved and doesn't send clicks).
- include/ui.js:setViewClip() routine sets the clipping of the
  viewport to the current size of the viewport area (if clipping is
  enabled).
- include/ui.js:setViewDrag() toggles/enables/disables viewport
  dragging mode.
- Add several images for the UI and for Apple devices:
    - images/clipboard.png: clipboard menu icon
    - images/connect.png: connect menu icon
    - images/disconnect.png: disconnect button icon
    - images/keyboard.png: show keyboard button
    - images/move.png: viewport drag/move toggle button
    - images/settings.png: settings menu icon
    - images/screen_320x460.png: iOS app/desktop link start image
    - images/screen_57x57.png: iOS app icon
    - images/screen_700x700.png: full size noVNC image
19 files changed:
images/clipboard.png [new file with mode: 0644]
images/connect.png [new file with mode: 0644]
images/disconnect.png [new file with mode: 0644]
images/keyboard.png [new file with mode: 0644]
images/move.png [new file with mode: 0644]
images/screen_320x460.png [new file with mode: 0644]
images/screen_57x57.png [new file with mode: 0644]
images/screen_700x700.png [new file with mode: 0644]
images/settings.png [new file with mode: 0644]
include/base.css
include/black.css
include/blue.css
include/display.js
include/mobile.css [deleted file]
include/rfb.js
include/ui.js
tests/viewport.css [new file with mode: 0644]
tests/viewport.html
vnc.html