[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] SF.net SVN: supercollider:[8329] trunk/Source/app/SCView.M



Revision: 8329
          http://supercollider.svn.sourceforge.net/supercollider/?rev=8329&view=rev
Author:   ctrl-t
Date:     2008-12-29 21:33:42 +0000 (Mon, 29 Dec 2008)

Log Message:
-----------
fixed SCRangeSlider ctrl- drag

Modified Paths:
--------------
    trunk/Source/app/SCView.M

Modified: trunk/Source/app/SCView.M
===================================================================
--- trunk/Source/app/SCView.M	2008-12-29 21:27:51 UTC (rev 8328)
+++ trunk/Source/app/SCView.M	2008-12-29 21:33:42 UTC (rev 8329)
@@ -2363,7 +2363,7 @@
         }
     } else {
         moveableRange = bounds.height - 5;
-        pos = (where.y - bounds.y - 2) / moveableRange;
+        pos = 1.0 - (where.y - bounds.y - 2) / moveableRange;
         range = mHi - mLo;
         if (pos-(range/2) < 0.0) {
             lo = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/