git-svn-id: svn://db.shs.com.ru/libs@368 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-03-30 09:25:39 +00:00
parent 31f2be6981
commit 5b43f9177b
2 changed files with 31 additions and 29 deletions

View File

@@ -601,6 +601,8 @@ void BlockView::wheelEvent(QWheelEvent * e) {
if (e->modifiers().testFlag(Qt::ControlModifier)) {
double scl = 1. - e->delta() / 500.;
//scale(scl, scl);
if (!is_nav_anim || (nav_anim.state() != QPropertyAnimation::Running))
nav_target = _nav();
QRectF r = nav_target;
double cx = double(e->pos().x()) / viewport()->width(), cy = double(e->pos().y()) / viewport()->height();
double pw = r.width(), ph = r.height();