Fix mouse reports

The patch 9cb5562 has introduced a regression which would abort if a
mouse report's line was bigger than zero, which is the exact opposite of
when a mouse report is required.

Fixes #4980.
This commit is contained in:
Christian Duerr 2021-04-16 20:23:54 +00:00 committed by GitHub
parent 9cb55621f7
commit 504b38cbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> {
let point = self.ctx.mouse().point(&self.ctx.size_info(), display_offset);
// Assure the mouse point is not in the scrollback.
if point.line >= 0 {
if point.line < 0 {
return;
}