more comfortable scrollwheel sensitivity
This commit is contained in:
parent
2a867c6998
commit
5599a8784d
|
@ -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
|
||||
|
|
7
todo.txt
7
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
|
||||
|
|
Loading…
Reference in a new issue