more comfortable scrollwheel sensitivity

This commit is contained in:
Jeremy Penner 2011-02-02 20:59:11 -08:00
parent 2a867c6998
commit 5599a8784d
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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