Skip to content

Commit

Permalink
fix _step jank
Browse files Browse the repository at this point in the history
  • Loading branch information
Caeden117 committed Nov 22, 2021
1 parent b97dd5e commit 9e53d67
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -75,7 +75,10 @@ public override void HandlePositionEvent(JSONNode customData = null)
{
var step = zoomed ? MAXPositionStep : MINPositionStep;

if (customData != null) step = customData["_step"];
if (customData?.HasKey("_step") ?? false)
{
step = customData["_step"];
}

var speed = customData?.HasKey("_speed") ?? false
? customData["_speed"].AsFloat
Expand Down

0 comments on commit 9e53d67

Please sign in to comment.