openmicroscopy/openmicroscopy — pull request #2860 by will-moore (2014-07-23 08:56:52+00:00)
Title: Mousewheel zoom centres on mouse location (rebased onto develop)

This is the same as gh-2693 but rebased onto develop.

----

This fixes https://trac.openmicroscopy.org.uk/ome/ticket/12391

To test:
- Open web full image viewer.
- Use the mousewheel to zoom on the image.
- When the restraints of image positioning allow (see below), the point of the image under the mouse pointer should remain the same while zooming.

Currently the image viewer does not allow you to drag the image outside the viewport IF it is small enough to fit in the viewport. This can lead to strange behaviour if we enforce this while zooming with the mouse.
Question is whether we want to remove this restriction? In this PR?