Skip to content

Touchpad-style cursor control and crisp zoom - #78

Merged
SandiyosDev merged 2 commits into
NearFrame:mainfrom
rebelancap:feature/touch-zoom-improvements
Aug 5, 2026
Merged

SandiyosDev merged 2 commits into
NearFrame:mainfrom
rebelancap:feature/touch-zoom-improvements

Conversation

@rebelancap

@rebelancap rebelancap commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Love the app, been using it more it to remotely control my Macs and PCs. Two related touch/zoom improvements here, in separate commits so they're easy to review or take independently. I've used many VNC/RDP iPhone apps over the years and think these are crucial enhancements to make OpenParsec much better at remote desktop control on touchscreen.

Centered-cursor touch control. Reworks touch input into a touchpad-style model: cursor stays centered and you move it by dragging, with two-finger pinch-zoom and scroll, long-press for click-and-drag, and a little flick-to-glide momentum. IMO, this is a much more fluid and responsive touch experience.

Crisp zoom. When you zoom in, the GL drawable density is raised to match the host's source resolution so the magnified image stays sharp instead of blurring. It's gated on actual zoom, so there's no extra GPU cost at 1×.

QoL Fixes. A few robust fixes from on-device testing: tap recognizers no longer swallow touch-end events (which could occasionally strand a phantom finger and stick the view in zoom or scroll), touch state is flushed if the app gets backgrounded mid-gesture, and a stale "ghost" touch left by a dropped OS touch-end is swept once another finger is clearly moving. Both mouse clicks and movements are now much more reliable.
Also added new settings in Interactivity: Scroll Speed and Reverse Scroll Direction.

No new dependencies, all on the existing GLKit render path. Tested on iPhone Air, iOS 27 DB2 against Mac mini and PC over LAN and Internet. Happy to split this into two PRs, change the defaults, or adjust anything you'd rather see done differently. These fixes have greatly improved my own productivity when using OpenParsec for remote desktop control.

Centered-cursor viewport with absolute positioning, two-finger pinch-zoom and scroll, long-press click-hold drag, and flick-to-glide momentum for cursor and scroll. Adds a Scroll Speed setting.
Crisp zoom: raise the GL drawable density to match the host source while magnified so zoomed content stays sharp, gated on actual zoom scale so 1x keeps native density. Re-issue SetDimensions on scale change so the SDK fills the new drawable.

Touch robustness: tap recognizers no longer delay/cancel touches so the overlay always sees the real touch lifecycle; flush touch state on resign-active; sweep an OS-orphaned ghost touch when another finger is actively moving.
@studiobloom

Copy link
Copy Markdown
Contributor

solid, gonna be using this until merged to main.

@rebelancap

rebelancap commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor Author

@studiobloom Yeah give me some feedback for improvement or potential additional features. I've been using this instead of main and it's been far better for me personally.

@studiobloom

studiobloom commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

i was gonna attempt the combo of features #61 a while back but got a bit backlogged. last real piece of the puzzle for replicating the core QoL differences between this and chrome remote desktop seems to be multi display mode which to my understanding is much more doable with the center on cursor applied. other than that i think you got the exact features i was looking for

@SandiyosDev

SandiyosDev commented Aug 4, 2026 •

Copy link
Copy Markdown
Collaborator

I had a draft prepped for this issue that would've been proposed after the maintainer could merge my last PR, but they're just not present enough for anything to be merged near-term.

OpenParsec is my daily driver... I'm thinking, How about we fork OpenParsec under GPLv3 and maintain it ourselves?

@hugeBlack

hugeBlack commented Aug 4, 2026 •

Copy link
Copy Markdown
Collaborator

@SandiyosDev I mainly maintain LiveContainer recently and am busy with irl stuff, plus I rarely use Parsec now, so I don't have much spare time to maintain Openparsec. Would you like me to add you as a collaborator?

@hugeBlack

Copy link
Copy Markdown
Collaborator

Btw I'm working (vibecoding) on a rust version of ParsecSDK so we can probably get rid of the old official SDK and add more modern parsec features like microphone/camera pass through, multiple screen etc, and also replace OpenGL with metal.

@SandiyosDev

Copy link
Copy Markdown
Collaborator

@SandiyosDev I mainly maintain LiveContainer recently and am busy with irl stuff, plus I rarely use Parsec now, so I don't have much spare time to maintain Openparsec. Would you like me to add you as a collaborator?

I'm in, thanks! I'll start with #78 since people are already running it, then rebase my own two staged PRs.

I can review PRs, device test, and merge (to main is fine with you?), not so much on cutting releases to altstore... What's the best way you'd like to go about this?

@SandiyosDev

Copy link
Copy Markdown
Collaborator

Btw I'm working (vibecoding) on a rust version of ParsecSDK so we can probably get rid of the old official SDK and add more modern parsec features like microphone/camera pass through, multiple screen etc, and also replace OpenGL with metal.

Yes! A rewrite would be solid! I was trying to figure out client-side audio submit and metal and never got it working, cuz the the 2019 SDK blob just doesn't support it.

The only thing I'd say is keep it clean-room, off the old SDK internals and just go from the public headers for good measure. (Legality wise)

Oh, and we call it "agentic engineering" nowadays ;)

@studiobloom

Copy link
Copy Markdown
Contributor

would be more than happy to help out when/where i can

@SandiyosDev

Copy link
Copy Markdown
Collaborator

Merging, appreicate the wait

Touchpad mode is solid, but one thing I hit in direct mode:

direct-mode-tap-selection

single tap drag-selects from wherever the cursor was to wherever you tapped, I will fixe it in a follow-up rather than hold the merge

@SandiyosDev
SandiyosDev merged commit 8229472 into NearFrame:main Aug 5, 2026
@SandiyosDev

Copy link
Copy Markdown
Collaborator

Also, good work on zoom, was having a hard time dealing with that

@SandiyosDev

Copy link
Copy Markdown
Collaborator

would be more than happy to help out when/where i can

@studiobloom work's with me, your help would be great. If you can help me device test some features, I'd gladly take your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants