ignore mouse press as well if isn't possible to flick
svn path=/trunk/KDE/kdelibs/; revision=1207046
This commit is contained in:
parent
e2f5428044
commit
3ad1f7887a
@ -1373,6 +1373,9 @@ void ScrollWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
{
|
{
|
||||||
if (!d->widget) {
|
if (!d->widget) {
|
||||||
return;
|
return;
|
||||||
|
} else if (!d->canYFlick() && !d->canXFlick()) {
|
||||||
|
event->ignore();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
d->handleMousePressEvent(event);
|
d->handleMousePressEvent(event);
|
||||||
@ -1398,8 +1401,7 @@ void ScrollWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
|
|||||||
{
|
{
|
||||||
if (!d->widget) {
|
if (!d->widget) {
|
||||||
return;
|
return;
|
||||||
}
|
} else if (!d->canYFlick() && !d->canXFlick()) {
|
||||||
if (!d->canYFlick() && !d->canXFlick()) {
|
|
||||||
event->ignore();
|
event->ignore();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user