Skip to content

Cursor tracking support #366

@everyx

Description

@everyx

Feature summary

I would like Kooha to include a Cursor Tracking Support feature. This feature would allow the recording area to dynamically follow the mouse cursor's movement, creating a focused recording effect that automatically keeps the action centered, which is extremely useful for tutorials and demonstrations.

How would you like it to work

The cursor tracking mechanism should be an intelligent system that dynamically adjusts the recording area based on the cursor's position, incorporating the following core characteristics:

  1. Dynamic Area Adjustment (Intelligent Scaling):
    The recording area should intelligently switch its size, primarily between a pre-defined target size (focused) and the full-screen size. For example, when the cursor is idle or moving within the target area, the target size is maintained. If the cursor moves quickly and approaches the edge of the monitor, the recording area could temporarily expand to full screen to capture the entire context, then shrink back down once the cursor settles.
  2. Edge-Triggered Repositioning (Smooth Panning):
    When the cursor approaches the boundary (a configurable margin) of the currently defined recording area, the area should smoothly reposition itself (pan) to recenter the cursor. This movement should be smooth and continuous to avoid jarring jumps in the recording.
  3. Stability Detection (Jitter Prevention):
    Implement a stability radius or a dead zone. If the cursor moves only within a small, defined radius, the recording area should not move or resize. This prevents unwanted jitter caused by slight, unintentional mouse movements.
  4. Smooth Transition Animation:
    All movements (panning/repositioning) and size changes (scaling) must be implemented with smooth transition animations. Support for both linear and easing/tweening effects would be beneficial to provide a professional, polished look to the final recording.

Additional Information

  • Open Source Reference Project: The project heng30/wayshot implements cursor tracking functionality which may provide a useful starting point for implementation or technical understanding.
  • Reference screencast

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions