Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fullscreen video absolute position #85

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

tutman96
Copy link
Contributor

@tutman96 tutman96 commented Jan 20, 2025

Fixes #21

Updates the absolute mouse position calculation to take into account differing aspect ratio between the video element and the video stream, which happens when fullscreening the screen share.

This also adds dev:device package.json script to allow doing live-reload against a development JetKVM device. As introduced in #10

@tutman96 tutman96 changed the title Fix fullscreen video relative mouse movements Fix fullscreen video absolute position Jan 20, 2025
@Nevexo Nevexo added enhancement New feature or request ui labels Jan 21, 2025
@adamshiervani
Copy link
Contributor

Works well, and I really like the Vite proxy override. Since device mode is the primary development mode, we should make it the default.

The issue, however, is that developers need to dig into vite.config.ts to understand that there’s a proxy override.

To avoid feature creep in this PR, let’s create another one with a wrapper script that prompts the user for a JetKVM IP. If we want to get fancy, we could also store a list of IPs in a dot folder.

@adamshiervani adamshiervani merged commit 69168ff into jetkvm:dev Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fullscreen with different aspect ratio than the video causes mouse to be offset
3 participants