From 5599a8784da072f05947b89a7b9e42611491979d Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Wed, 2 Feb 2011 20:59:11 -0800 Subject: [PATCH] more comfortable scrollwheel sensitivity --- src/WorldStage.as | 4 ++-- todo.txt | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/WorldStage.as b/src/WorldStage.as index 1613208..ca1c400 100644 --- a/src/WorldStage.as +++ b/src/WorldStage.as @@ -269,14 +269,14 @@ package { if (sidebar.fScrollable && sidebar.collidePoint(sidebar.x, sidebar.y, Input.mouseX, Input.mouseY)) { - sidebar.MoveSidebar(Input.mouseWheelDelta * 5); + sidebar.MoveSidebar(Input.mouseWheelDelta * 16); fSidebarScrolled = true; break; } } if (!fSidebarScrolled) // otherwise adjust zoom { - var zoomNew: Number = zoom + (Input.mouseWheelDelta / 100); + var zoomNew: Number = zoom + ((Input.mouseWheelDelta / 100) * zoom); if (zoomNew <= 0) zoomNew = 0.01; // keep the point under the mouse cursor in the same place diff --git a/todo.txt b/todo.txt index e039001..0aebfc1 100644 --- a/todo.txt +++ b/todo.txt @@ -1,8 +1,10 @@ -- fix scrollwheel sensitivity - - decide on a license +- create a readme +- push to github + - finalize "library" notion - text objects +- UI refactoring? - tilemap - layers @@ -12,3 +14,4 @@ DONE: - panning - zoom to 100% (magnifying glass icon?) - show 0,0, maybe some other griddy options +- fix scrollwheel sensitivity