Line 0
Link Here
|
|
|
1 |
--- Source/WebCore/platform/gtk/GtkClickCounter.cpp.orig 2018-02-07 02:12:45 UTC |
2 |
+++ Source/WebCore/platform/gtk/GtkClickCounter.cpp |
3 |
@@ -85,8 +85,8 @@ int GtkClickCounter::clickCountForGdkBut |
4 |
guint32 eventTime = getEventTime(event); |
5 |
|
6 |
if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) |
7 |
- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) |
8 |
- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) |
9 |
+ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) |
10 |
+ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) |
11 |
&& (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime)) |
12 |
&& (buttonEvent->button == m_previousClickButton))) |
13 |
m_currentClickCount++; |