-
Committer:
Samuel Thibault
-
Date:
2018-06-11 12:02:32 UTC
-
Revision ID:
samuel.thibault@ens-lyon.org-20180611120232-2u1cx5anqazfcpp6
Synchronize X and Y translation capping
Capping X and Y separately brings some discontinuity visual effect: instead of
terminating the translation at the same time, the axis getting capped (e.g. X)
will terminate the translation later, so that at the point when the other axis
(here, Y) is finished translating, there is a discontinuity in the movement: we
suddenly have only X translation, and no Y translation any more. This does not
look very smooth.
This changes it by simply capping both axis at the same time.