gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Restrict panning in ScaledView #13

Closed ypnos closed 9 years ago

ypnos commented 9 years ago

In ScaledView, panning should be restricted like it is also done in Viewport.

At the location here:

Maybe scaler.map(pixmap->rect()) and use contains() on sceneRect() to determine four bools, then use above logic.

ypnos commented 9 years ago

Also ignore mouse movement outside of the pixmap. It can have irritating effects.

ypnos commented 9 years ago

Implemented in #20