[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_4_BRANCH: kdelibs/khtml
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2005-04-19 18:50:46
Message-ID: 20050419185046.2ED75650 () office ! kde ! org
[Download RAW message or body]
CVS commit by pletourn:
Don't interpret a right click, just after a double click, as a triple click
Don't interpret a double click, long after a click, as a triple click
M +1 -6 khtmlview.cpp 1.692.2.3
--- kdelibs/khtml/khtmlview.cpp #1.692.2.2:1.692.2.3
@@ -857,5 +857,5 @@ void KHTMLView::viewportMousePressEvent(
{
if (!m_part->xmlDocImpl()) return;
- if (d->possibleTripleClick)
+ if (d->possibleTripleClick && ( _mouse->button() & MouseButtonMask ) == \
LeftButton) {
viewportMouseDoubleClickEvent( _mouse ); // it handles triple clicks too
@@ -954,12 +954,7 @@ void KHTMLView::viewportMousePressEvent(
}
- if (d->clickCount > 0 &&
- QPoint(d->clickX-xm,d->clickY-ym).manhattanLength() <= \
QApplication::startDragDistance())
- d->clickCount++;
- else {
d->clickCount = 1;
d->clickX = xm;
d->clickY = ym;
- }
bool swallowEvent = \
dispatchMouseEvent(EventImpl::MOUSEDOWN_EVENT,mev.innerNode.handle(),mev.innerNonSharedNode.handle(),true,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic