mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 21:34:38 -05:00
wheel region
This commit is contained in:
@@ -174,15 +174,17 @@ namespace VRM
|
||||
|
||||
case EventType.ScrollWheel:
|
||||
//Debug.LogFormat("wheel: {0}", current.delta);
|
||||
if (current.delta.y > 0)
|
||||
{
|
||||
m_distance *= 1.1f;
|
||||
Repaint();
|
||||
}
|
||||
else if (current.delta.y < 0)
|
||||
{
|
||||
m_distance *= 0.9f;
|
||||
Repaint();
|
||||
if (r.Contains(current.mousePosition)){
|
||||
if (current.delta.y > 0)
|
||||
{
|
||||
m_distance *= 1.1f;
|
||||
Repaint();
|
||||
}
|
||||
else if (current.delta.y < 0)
|
||||
{
|
||||
m_distance *= 0.9f;
|
||||
Repaint();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user