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:
@ -917,11 +917,14 @@ void Viewer::animateHideTranslator()
|
||||
|
||||
void Viewer::mousePressEvent ( QMouseEvent * event )
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
drag = true;
|
||||
yDragOrigin = event->y();
|
||||
xDragOrigin = event->x();
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::mouseReleaseEvent ( QMouseEvent * event )
|
||||
|
Reference in New Issue
Block a user