Skip to content

docking: Allow non-pressure reveal near the screen edge - #2788

Open
Michaelmascarenhas90 wants to merge 1 commit into
ubuntu:masterfrom
Michaelmascarenhas90:fix/edge-dwell-tolerance
Open

Michaelmascarenhas90 wants to merge 1 commit into
ubuntu:masterfrom
Michaelmascarenhas90:fix/edge-dwell-tolerance

Conversation

@Michaelmascarenhas90

Copy link
Copy Markdown

Problem

When pressure-to-show is disabled, the dwell path requires the pointer to be on the exact outermost pixel of the monitor. This makes the hidden dock difficult to reveal on some display layouts.

Change

Accept the pointer within four pixels of the corresponding screen edge. Keep the existing work-area bounds along the edge and apply the same tolerance to all four dock positions.

Verification

  • node --check docking.js
  • git diff --check

make check could not run locally because eslint is not installed.

Related: #2780 addresses pointer sampling and an X11 hover regression. This change focuses only on the edge tolerance.

The non-pressure dwell path currently requires the pointer to land on
the exact outermost pixel of the monitor. On some display layouts, this
makes the hidden dock difficult to reveal without enabling pressure.

Accept pointer positions within four pixels of the relevant screen edge
while keeping the existing work-area limits along that edge. This
makes hover reveal more reliable for docks on any side of a monitor.

This branch has not been deployed

No deployments
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.

1 participant