[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[8302] trunk/build/Help/GUI/Cocoa-GUI/ SCUserViewSubclassing/SCUserViewTutorial.sc
Revision: 8302
http://supercollider.svn.sourceforge.net/supercollider/?rev=8302&view=rev
Author: jmfuo
Date: 2008-12-26 14:23:36 +0000 (Fri, 26 Dec 2008)
Log Message:
-----------
minor chante to mouseActions
Modified Paths:
--------------
trunk/build/Help/GUI/Cocoa-GUI/SCUserViewSubclassing/SCUserViewTutorial.sc
Modified: trunk/build/Help/GUI/Cocoa-GUI/SCUserViewSubclassing/SCUserViewTutorial.sc
===================================================================
--- trunk/build/Help/GUI/Cocoa-GUI/SCUserViewSubclassing/SCUserViewTutorial.sc 2008-12-26 14:12:44 UTC (rev 8301)
+++ trunk/build/Help/GUI/Cocoa-GUI/SCUserViewSubclassing/SCUserViewTutorial.sc 2008-12-26 14:23:36 UTC (rev 8302)
@@ -75,7 +75,7 @@
mouseDownAction.value(this, x, y, modifiers, buttonNumber, clickCount);
// set the value and do the action
- (modifiers == 256).if{ // restrict to no modifier
+ ([256, 0].includes(modifiers)).if{ // restrict to no modifier
newVal= x.linlin(this.bounds.left,this.bounds.left+this.bounds.width,0,1);
// translates the mouse position in pixels to a relative value between 0 and 1
@@ -90,7 +90,7 @@
mouseMoveAction.value(this, x, y, modifiers, buttonNumber, clickCount);
// set the value and do the action
- (modifiers == 256).if{ // restrict to no modifier
+ ([256, 0].includes(modifiers)).if{ // restrict to no modifier
newVal= x.linlin(this.bounds.left,this.bounds.left+this.bounds.width,0,1);
// translates the mouse position in pixels to a relative value between 0 and 1
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/