This design document describes a proposed new mouse mode for the Tuple client.
In contrast to Free-for-all Mode (where the host and guest each have their own pointer), Tag Team lets a host and a guest trade off controlling a single mouse pointer by clicking once to take control.
As of v0.11.5 (1/11/19), Free-for-all Mode is the source of many bugs.
The differences in external mice vs trackpads and across distinct macOS versions leads to lots of complexity. It's tricky to handle edge cases like showing the correct pointer type.
It's also not clear how useful our users find Free-for-all Mode.
We suspect that Tag Team will be much easier to implement correctly.
-
Replace Free-for-all Mode with something that provides many of the benefits but with lower complexity and tendency for buginess.
-
Eliminate the phantom pointer effect.
-
Give our early users a reliable mouse mode quickly, which buys time to perfect Free-for-all Mode.
- It is not our goal to spend a huge amount of development effort on this task. If Tag Team proves to be equally complex to implement, the effort should be reevaluated.
Assume two Tuplers start a call and activate Tag Team.
-
The host always starts with control of the mouse.
-
When the host has control, the guest's mouse movements do not affect the host's mouse pointer.
-
When the host has control, the guest's mouse movements DO affect their local pointer as usual.
-
When the guest clicks within the Tuple window, control is given to them.
-
When control is given to the guest, the pointer on the host machine is warped to the current location of the guest's pointer.
-
While the guest has control, their pointer movements affect the cursor on the host's machine.
-
While the guest has control, the host's mouse movements do not affect the pointer.
-
When either side clicks to take control, the click does not fire a click event on the host machine.
-
When the guest does not have control, right-clicking shows an indicator on the host machine.
-
Do we need some sort of indication that control has switched, or will people just figure it out?
-
Will our users miss Free-for-all Mode? Are they using it a lot?