mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 14:34:42 -04:00
only enter drag mode using the left mouse click
This commit is contained in:
@ -916,6 +916,8 @@ void Viewer::animateHideTranslator()
|
||||
}
|
||||
|
||||
void Viewer::mousePressEvent ( QMouseEvent * event )
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
drag = true;
|
||||
yDragOrigin = event->y();
|
||||
@ -923,6 +925,7 @@ void Viewer::mousePressEvent ( QMouseEvent * event )
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::mouseReleaseEvent ( QMouseEvent * event )
|
||||
{
|
||||
|
Reference in New Issue
Block a user