[Webkit-unassigned] [Bug 135476] Implement long mouse press over links. Part of 135257 - Add long mouse press gesture.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 8 16:07:46 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135476


Tim Horton <thorton at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #236311|review?                     |review+
               Flag|                            |




--- Comment #12 from Tim Horton <thorton at apple.com>  2014-08-08 16:07:57 PST ---
(From update of attachment 236311)
View in context: https://bugs.webkit.org/attachment.cgi?id=236311&action=review

> Source/WebCore/page/EventHandler.cpp:136
> +const std::chrono::milliseconds LongMousePressRecognitionDelay = 500_ms;
> +const int MaximumLongMousePressDragDistance = 5; // in points.

Lowercase leading letters was actually correct, the things around here are wrong :D

> Source/WebCore/page/EventHandler.h:384
> +    bool mouseMovementExceedsThreshold(const FloatPoint&, const int pointsThreshold) const;

Sounds good to me!

Don't think you need the 'const' on the int parameter (some would even say const reference is overkill for FloatPoint, but I will leave that be).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list