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))
|
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;
|
fSidebarScrolled = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!fSidebarScrolled) // otherwise adjust zoom
|
if (!fSidebarScrolled) // otherwise adjust zoom
|
||||||
{
|
{
|
||||||
var zoomNew: Number = zoom + (Input.mouseWheelDelta / 100);
|
var zoomNew: Number = zoom + ((Input.mouseWheelDelta / 100) * zoom);
|
||||||
if (zoomNew <= 0)
|
if (zoomNew <= 0)
|
||||||
zoomNew = 0.01;
|
zoomNew = 0.01;
|
||||||
// keep the point under the mouse cursor in the same place
|
// 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
|
- decide on a license
|
||||||
|
- create a readme
|
||||||
|
- push to github
|
||||||
|
|
||||||
- finalize "library" notion
|
- finalize "library" notion
|
||||||
- text objects
|
- text objects
|
||||||
|
- UI refactoring?
|
||||||
|
|
||||||
- tilemap
|
- tilemap
|
||||||
- layers
|
- layers
|
||||||
|
@ -12,3 +14,4 @@ DONE:
|
||||||
- panning
|
- panning
|
||||||
- zoom to 100% (magnifying glass icon?)
|
- zoom to 100% (magnifying glass icon?)
|
||||||
- show 0,0, maybe some other griddy options
|
- show 0,0, maybe some other griddy options
|
||||||
|
- fix scrollwheel sensitivity
|
||||||
|
|
Loading…
Reference in a new issue