From kde-commits Tue Apr 19 18:48:14 2005 From: =?utf-8?q?Pascal=20L=C3=A9tourneau?= Date: Tue, 19 Apr 2005 18:48:14 +0000 To: kde-commits Subject: kdelibs/khtml Message-Id: <20050419184814.C5F5F650 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111393863813527 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,