Skip to content

[Bug]: Sensitivity slider value is not wired to the trackpad, setting is ignored and double-applied #52

@Rozerxshashank

Description

@Rozerxshashank

Bug Description

Related to #42 which requested the sensitivity slider. The slider now exists in Settings, but it's not correctly connected to the trackpad. There are two problems:

Problem 1: The trackpad ignores the user's sensitivity setting.
The trackpad page never passes the configured sensitivity to the gesture hook. Instead, the hook falls back to a hardcoded default of 1.5, so no matter what the user sets in Settings, the client always uses 1.5.

Problem 2: Sensitivity is applied twice once on the client, once on the server.
The client multiplies all touch movement by its hardcoded 1.5 before sending it to the server. The server then multiplies the same values again by the configured sensitivity from server-config.json. So if the user sets sensitivity to 2.0, the actual result is 1.5 × 2.0 = 3.0 not what the user intended.

Proposed Solution:
Apply sensitivity in one place only the server since it already reads the saved setting.

Remove the hardcoded 1.5 multiplier from the client-side gesture hook and let the server handle scaling. This way the Settings slider directly controls cursor speed with no double-application.

Steps to Reproduce

  1. Start the server with npm run dev
  2. Open Settings and set Mouse Sensitivity to 0.5x, then click Save Config
  3. Connect from a mobile device and use the trackpad
  4. Notice: the cursor still moves faster than expected (0.75x instead of 0.5x)
  5. Now set sensitivity to 3.0x and save — the cursor moves at 4.5x instead of 3.0x

Expected Behavior

The sensitivity slider should directly control cursor speed. Setting it to 0.5x should give half speed, and 3.0x should give triple speed without any hidden multiplier inflating the value.

Desktop Operating System

Windows 11

Mobile Device (Client)

Samsung Galaxy A56

Rein Version

1.0.0

Console Logs / Error Messages

No errors. This is a silent logic bug.

Screenshots / Recordings

No response

Checklist

  • I have searched for existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions