From: <cl...@us...> - 2007-06-27 14:54:16
|
Revision: 18 http://fortress.svn.sourceforge.net/fortress/?rev=18&view=rev Author: clrg Date: 2007-06-27 07:54:13 -0700 (Wed, 27 Jun 2007) Log Message: ----------- Event handling fixes - stop dragging if mouse button is released outside of frame (map) - stop dragging if frame loses focus (minimap) Modified Paths: -------------- trunk/Prototype/src/net/sourceforge/fortress/map.t trunk/Prototype/src/net/sourceforge/fortress/minimap.t Modified: trunk/Prototype/src/net/sourceforge/fortress/map.t =================================================================== --- trunk/Prototype/src/net/sourceforge/fortress/map.t 2007-06-27 02:14:57 UTC (rev 17) +++ trunk/Prototype/src/net/sourceforge/fortress/map.t 2007-06-27 14:54:13 UTC (rev 18) @@ -59,7 +59,7 @@ { drag1 = false; surface.Focused --= sr1Func; - surface.Release1 --= sr1Func; + surface._Release1 --= sr1Func; } thisbox.Press1 ++= function(v) @@ -68,7 +68,7 @@ createMudTile(activeTile); drag1 = true; surface.Focused ++= sr1Func; - surface.Release1 ++= sr1Func; + surface._Release1 ++= sr1Func; } //////// minimap interaction ////////////////////////////////// Modified: trunk/Prototype/src/net/sourceforge/fortress/minimap.t =================================================================== --- trunk/Prototype/src/net/sourceforge/fortress/minimap.t 2007-06-27 02:14:57 UTC (rev 17) +++ trunk/Prototype/src/net/sourceforge/fortress/minimap.t 2007-06-27 14:54:13 UTC (rev 18) @@ -43,12 +43,14 @@ var releaseFunc = function(v) { Move --= moveMapFunc; + surface.Focused --= releaseFunc; surface._Release1 --= releaseFunc; } var pressFunc = function(v) { Move ++= moveMapFunc; + surface.Focused ++= releaseFunc; surface._Release1 ++= releaseFunc; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |