Skip to content

Commit

Permalink
group clicks not more than by 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Jan 30, 2025
1 parent 3dab944 commit e89640f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bidiMapper/modules/input/InputSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ export class PointerSource {
storedContext = context;
}
++storedContext.count;
if (storedContext.count > 2) {
// There is no API for triple clicks, so a series of clicks should be grouped in
// pairs.
// https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043
storedContext.count = 1;
}
this.#clickContexts.set(button, storedContext);
return storedContext.count;
}
Expand Down

0 comments on commit e89640f

Please sign in to comment.