Skip to content

Feature Request: manually control swipe speed in function swipe #164

@raphtastisch

Description

@raphtastisch

It would be cool if the swipe speed of the function "swipe" could be set manually.

I assume its enough if you do the following:

Change:

      async swipe (dir = 'right') {
        if (onSwipe) onSwipe(dir)
        const power = 1.3
        const disturbance = (Math.random() - 0.5) / 2

To:

      async swipe (dir = 'right', power=1.3) {
        if (onSwipe) onSwipe(dir)
        const disturbance = (Math.random() - 0.5) / 2

Probably it's also a good idea to do the same with disturbance if you are on it.

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