[webkit-changes] [WebKit/WebKit] 4776b3: [LibWPE] Fix click count logic

Don Olmstead noreply at github.com
Fri Jul 7 18:21:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4776b34f03c78abda6801614775b8c468f6a5a27
      https://github.com/WebKit/WebKit/commit/4776b34f03c78abda6801614775b8c468f6a5a27
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    M Source/WebKit/Shared/libwpe/WebEventFactory.cpp

  Log Message:
  -----------
  [LibWPE] Fix click count logic
https://bugs.webkit.org/show_bug.cgi?id=259000

Reviewed by Michael Catanzaro.

When comparing screen coordinates for a click `==` was used instead of
a subtraction. Also modify the threshold to be an int so there isn't
a type warning since `std::abs` outputs an `int` not an `unsigned`.

* Source/WebKit/Shared/libwpe/WebEventFactory.cpp:
(WebKit::clickCount):

Canonical link: https://commits.webkit.org/265874@main




More information about the webkit-changes mailing list