From a6f63ee87301939a4bb2650f06edaac590eaf4ad Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 19 Feb 2002 03:57:30 +0000 Subject: [PATCH] Need to set the absolute value of the velocity. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1030 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/animation/AnimatedPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/media/animation/AnimatedPanel.java b/src/java/com/threerings/media/animation/AnimatedPanel.java index ce1215c85..60b6d2f35 100644 --- a/src/java/com/threerings/media/animation/AnimatedPanel.java +++ b/src/java/com/threerings/media/animation/AnimatedPanel.java @@ -1,5 +1,5 @@ // -// $Id: AnimatedPanel.java,v 1.10 2002/02/19 01:42:28 mdb Exp $ +// $Id: AnimatedPanel.java,v 1.11 2002/02/19 03:57:30 mdb Exp $ package com.threerings.media.animation; @@ -110,9 +110,9 @@ public class AnimatedPanel extends Canvas implements AnimatedView // lower of the two velocities (but not to zero if either one // is zero) if (_msppx == 0) { - _animmgr.setScrolling(msppy); + _animmgr.setScrolling(Math.abs(msppy)); } else if (_msppy == 0) { - _animmgr.setScrolling(msppx); + _animmgr.setScrolling(Math.abs(msppx)); } else { _animmgr.setScrolling( Math.min(Math.abs(msppx), Math.abs(msppy)));