Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Dec 9, 2023
1 parent 8dd0ae8 commit cb47191
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Assets/Scripts/Cgs/Play/PlayMatRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class PlayMatRotation : MonoBehaviour
public CanvasGroup sliderCanvasGroup;

private const float PageHorizontalSensitivity = 45f;
private const float PageHorizontalSensitivity2 = 0.2f;
private const float Tolerance = 0.01f;
private const float TimeToDisappear = 3f;

Expand Down Expand Up @@ -75,7 +76,7 @@ private void Update()
Time.deltaTime * Inputs.FPageHorizontal * PageHorizontalSensitivity;
else
_playController.playArea.horizontalNormalizedPosition -=
Inputs.FPageHorizontal * PageHorizontalSensitivity * Time.deltaTime;
Inputs.FPageHorizontal * PageHorizontalSensitivity2 * Time.deltaTime;
}

[UsedImplicitly]
Expand Down
3 changes: 3 additions & 0 deletions Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ protected override void SetContentAnchoredPosition(Vector2 position)

public override void OnDrag(PointerEventData eventData)
{
if (Input.GetMouseButton(0) && !(Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)))
return;

PointerPositions[eventData.pointerId] = eventData.position;
switch (eventData.button)
{
Expand Down
4 changes: 2 additions & 2 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"com.davidmfinol.sfb": "https://github.com/davidmfinol/UnityStandaloneFileBrowser.git",
"com.unity.2d.sprite": "1.0.0",
"com.unity.ai.navigation": "1.1.5",
"com.unity.ide.rider": "3.0.26",
"com.unity.ide.rider": "3.0.27",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.vscode": "1.2.5",
"com.unity.netcode.gameobjects": "1.6.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.services.lobby": "1.1.0",
"com.unity.services.lobby": "1.1.1",
"com.unity.services.relay": "1.0.5",
"com.unity.test-framework": "1.3.0",
"com.unity.testtools.codecoverage": "1.2.4",
Expand Down
4 changes: 2 additions & 2 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.rider": {
"version": "3.0.26",
"version": "3.0.27",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -128,7 +128,7 @@
"url": "https://packages.unity.com"
},
"com.unity.services.lobby": {
"version": "1.1.0",
"version": "1.1.1",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down

0 comments on commit cb47191

Please sign in to comment.