[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2005-04-19 18:48:14
Message-ID: 20050419184814.C5F5F650 () 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.702
--- kdelibs/khtml/khtmlview.cpp #1.701:1.702
@@ -858,5 +858,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
@@ -955,12 +955,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