Skip to content

Snap with sleep enabled #28

Description

@Khalinda

In getResponsiveValue:

` // when sleep is enabled, the emphasis is stopping on a responsiveValue quickly, and it's less about easing into position.

// If sleep is enabled, add a small amount to snap so it'll tend to snap into a more accurate position before sleeping starts.

if(sleepEnable) {
snap *= 0.5 + 0.5;
}
`
I don't think it means what you think it means.

"+" has higher precedence than "*=". Furthermore "*=" is right associative. Isn't

snap *= 0.5 + 0.5;

equivalent to :

snap *= 1.0;

Did you perhaps mean:

snap = 0.5*snap + 0.5;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions