Skip to content

Incorrect Mouse Detection on Windows in v1.0.3 #20

Description

@jarpex

In the latest release (v1.0.3), Spotlight JS incorrectly detects a mouse as a trackpad on Windows. This issue only occurs on Windows and is not reproducible on Linux or macOS, where input devices are detected correctly.

As a result, mouse-specific behavior is misclassified, which affects interaction logic that depends on accurate input device detection.

Environment

  • OS: Windows (reproducible across tested Windows systems)
  • Spotlight-JS version: v1.0.3
  • Other OS tested: Linux, macOS (working correctly)

Steps to Reproduce

  1. Run Spotlight JS demo page v1.0.3 on Windows.
  2. Use a standard mouse (non-trackpad input) for image scrolling.
  3. Observe that the spotlight reports the input device as a trackpad.

Expected Behavior

  • A mouse should be correctly identified as a mouse on Windows, consistent with behavior on Linux and macOS.

Actual Behavior

  • Mouse input on Windows is incorrectly classified as trackpad input.

Proposed Actions

  • Investigate the root cause of the incorrect input device detection on Windows.
  • Either:
    • Implement a Windows-specific workaround, or
    • Adjust detection parameters/logic so that they behave consistently across all operating systems.

Impact

This issue affects cross-platform consistency and breaks expected interaction behavior for Windows users relying on mouse input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions