Skip to content

Commit

Permalink
btrees mouse-move vs enter frame fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 14, 2009
1 parent a3c2ff6 commit 1a2e818
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/org/openzoom/flash/viewport/controllers/MouseController.as
Expand Up @@ -22,6 +22,7 @@
//
// Contributor(s):
// Daniel Gasienica <daniel@gasienica.ch>
// Benjamin Baum <baum@meso.net>
//
// Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 3 or later (the "GPL"), or
Expand Down Expand Up @@ -341,7 +342,7 @@ public final class MouseController extends ViewportControllerBase
/**
* @private
*/
private function view_mouseMoveHandler(event:MouseEvent):void
private function view_mousePanningHandler(event:Event):void
{
if (!panning)
return
Expand Down Expand Up @@ -406,8 +407,8 @@ public final class MouseController extends ViewportControllerBase
panning = true

// register for mouse move events
view.addEventListener(MouseEvent.MOUSE_MOVE,
view_mouseMoveHandler,
view.addEventListener(Event.ENTER_FRAME,
view_mousePanningHandler,
false, 0, true)
}

Expand All @@ -419,8 +420,8 @@ public final class MouseController extends ViewportControllerBase
// unregister from mouse move events
// FIXME
if (view)
view.removeEventListener(MouseEvent.MOUSE_MOVE,
view_mouseMoveHandler)
view.removeEventListener(Event.ENTER_FRAME,
view_mousePanningHandler)

panning = false
}
Expand Down

0 comments on commit 1a2e818

Please sign in to comment.